opendap/src/main/java/opendap/servers/Operator.java
private static boolean op(int oprtr, DFloat32 lop, DByte rop) throws InvalidOperatorException {
        switch (oprtr) {
            case LESS:
                return (lop.getValue() < rop.getValue());
            case LESS_EQL:
                return (lop.getValue() <= rop.getValue());
            case GREATER:
                return (lop.getValue() > rop.getValue());
            case GREATER_EQL:
                return (lop.getValue() >= rop.getValue());
            case EQUAL:
                return (lop.getValue() == rop.getValue());
            case NOT_EQUAL:
                return (lop.getValue() != rop.getValue());
            case REGEXP:
                throw new InvalidOperatorException(opErrorMsg(oprtr, lop.getTypeName(), rop.getTypeName()));
            default:
                throw new InvalidOperatorException("Unknown Operator Requested! RTFM!");
        }
    }
private static boolean op(int oprtr, DFloat32 lop, DByte rop) throws InvalidOperatorException {
        switch (oprtr) {
            case LESS:
                return (lop.getValue() < rop.getValue());
            case LESS_EQL:
                return (lop.getValue() <= rop.getValue());
            case GREATER:
                return (lop.getValue() > rop.getValue());
            case GREATER_EQL:
                return (lop.getValue() >= rop.getValue());
            case EQUAL:
                return (lop.getValue() == rop.getValue());
            case NOT_EQUAL:
                return (lop.getValue() != rop.getValue());
            case REGEXP:
                throw new InvalidOperatorException(opErrorMsg(oprtr, lop.getTypeName(), rop.getTypeName()));
            default:
                throw new InvalidOperatorException("Unknown Operator Requested! RTFM!");
        }
    }
private static boolean op ( int oprtr , DFloat32 lop , DByte rop ) throws InvalidOperatorException { switch ( oprtr ) { case LESS : return ( lop . getValue ( ) < rop . getValue ( ) ) ; case LESS_EQL : return ( lop . getValue ( ) <= rop . getValue ( ) ) ; case GREATER : return ( lop . getValue ( ) > rop . getValue ( ) ) ; case GREATER_EQL : return ( lop . getValue ( ) >= rop . getValue ( ) ) ; case EQUAL : return ( lop . getValue ( ) == rop . getValue ( ) ) ; case NOT_EQUAL : return ( lop . getValue ( ) != rop . getValue ( ) ) ; case REGEXP : throw new InvalidOperatorException ( opErrorMsg ( oprtr , lop . getTypeName ( ) , rop . getTypeName ( ) ) ) ; default : throw new InvalidOperatorException ( "Unknown Operator Requested! RTFM!" ) ; } }
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------