agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/monitors/parsers/SGEJobStatus.java
/**
     * Returns the {@link SGEJobStatus} with code matching the value passed in. Unlike other {@link RemoteSchedulerJobStatus}
     * classes, case sensitivity matters here due to the recycling of status codes with upper and lower cases.
     * This is similar to valueOf, but provides an {@link SGEJobStatus#UNKNOWN} value when no codes match.
     * @param code the status code to match. Case-sensitivity matters.
     * @return the {@link SGEJobStatus} with matching code, or {@link SGEJobStatus#UNKNOWN} if no matches.
     */
Returns the  SGEJobStatus with code matching the value passed in. Unlike other  RemoteSchedulerJobStatus
classes, case sensitivity matters here due to the recycling of status codes with upper and lower cases.
This is similar to valueOf, but provides an  SGEJobStatus#UNKNOWN value when no codes match.
@param code the status code to match. Case-sensitivity matters.
@return the  SGEJobStatus with matching code, or  SGEJobStatus#UNKNOWN if no matches.
Returns the SGEJobStatus with code matching the value passed in . Unlike other RemoteSchedulerJobStatus classes case sensitivity matters here due to the recycling of status codes with upper and lower cases . This is similar to valueOf but provides an SGEJobStatus#UNKNOWN value when no codes match . @param code the status code to match . Case - sensitivity matters . @return the SGEJobStatus with matching code or SGEJobStatus#UNKNOWN if no matches .
public static SGEJobStatus valueOfCode(String code) {
        for(SGEJobStatus status: values()) {
            if (status.code.equals(code)) {
                return status;
            }
        }
        return UNKNOWN;
    }
public static SGEJobStatus valueOfCode ( String code ) { for ( SGEJobStatus status : values ( ) ) { if ( status . code . equals ( code ) ) { return status ; } } return UNKNOWN ; }
Returns the {@link SGEJobStatus} with code matching the value passed in.
Returns the { @link SGEJobStatus } with code matching the value passed in .