mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/api/EnumConverter.java
public static ObservationQuery.SortField convertProtoSortFieldToJava(final SortField sortField)
    {
        if (SORT_FIELD.containsValue(sortField))
        {
            return SORT_FIELD.inverse().get(sortField);
        }
        throw new IllegalArgumentException(String.format("Invalid proto sort field specified: %s", sortField));
    }
/**
     * Method used to convert proto based {@link SortField} to 
     * {@link mil.dod.th.core.persistence.ObservationQuery.SortField}.
     * 
     * @param sortField
     *      The proto sort field enumeration to be converted.
     * @return
     *      The equivalent java sort field enumeration.
     */


@param sortField
The proto sort field enumeration to be converted.
@return
The equivalent java sort field enumeration.
@param sortField The proto sort field enumeration to be converted . @return The equivalent java sort field enumeration .
public static ObservationQuery.SortField convertProtoSortFieldToJava(final SortField sortField)
    {
        if (SORT_FIELD.containsValue(sortField))
        {
            return SORT_FIELD.inverse().get(sortField);
        }
        throw new IllegalArgumentException(String.format("Invalid proto sort field specified: %s", sortField));
    }
public static ObservationQuery . SortField convertProtoSortFieldToJava ( final SortField sortField ) { if ( SORT_FIELD . containsValue ( sortField ) ) { return SORT_FIELD . inverse ( ) . get ( sortField ) ; } throw new IllegalArgumentException ( String . format ( "Invalid proto sort field specified: %s" , sortField ) ) ; }
Method used to convert proto based {@link SortField} to
 {@link mil.dod.th.core.persistence.ObservationQuery.SortField}.
Method used to convert proto based { @link SortField } to { @link mil . dod . th . core . persistence . ObservationQuery . SortField } .