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