agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/monitors/parsers/CondorLogJobStatus.java
/**
	 * Returns the {@link CondorLogJobStatus} with code matching the value passed in regardless of case.
	 * This is similar to valueOf, but provides an {@link CondorLogJobStatus#UNKNOWN} value when
	 * no codes match.
	 * @param code the status code to match in a case-insensitive way.
	 * @return the {@link CondorLogJobStatus} with matching code, or {@link CondorLogJobStatus#UNKNOWN} if no matches.
	 */
Returns the  CondorLogJobStatus with code matching the value passed in regardless of case.
This is similar to valueOf, but provides an  CondorLogJobStatus#UNKNOWN value when
no codes match.
@param code the status code to match in a case-insensitive way.
@return the  CondorLogJobStatus with matching code, or  CondorLogJobStatus#UNKNOWN if no matches.
Returns the CondorLogJobStatus with code matching the value passed in regardless of case . This is similar to valueOf but provides an CondorLogJobStatus#UNKNOWN value when no codes match . @param code the status code to match in a case - insensitive way . @return the CondorLogJobStatus with matching code or CondorLogJobStatus#UNKNOWN if no matches .
public static CondorLogJobStatus valueOfCode(String code) {
		String paddedCode = StringUtils.leftPad(code, 3, "0");
		for(CondorLogJobStatus status: values()) {
			if (status.code.equalsIgnoreCase(paddedCode)) {
				return status;
			}
		}
		return UNKNOWN;
	}
public static CondorLogJobStatus valueOfCode ( String code ) { String paddedCode = StringUtils . leftPad ( code , 3 , "0" ) ; for ( CondorLogJobStatus status : values ( ) ) { if ( status . code . equalsIgnoreCase ( paddedCode ) ) { return status ; } } return UNKNOWN ; }
Returns the {@link CondorLogJobStatus} with code matching the value passed in regardless of case.
Returns the { @link CondorLogJobStatus } with code matching the value passed in regardless of case .