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