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