LessThanOperatorpublic class LessThanOperator extends RelationalOperator The implementation of the less than operator |
Fields Summary |
---|
public static final LessThanOperator | SINGLETON |
Constructors Summary |
---|
public LessThanOperator()Constructor
//-------------------------------------
|
Methods Summary |
---|
public java.lang.Object | apply(java.lang.Object pLeft, java.lang.Object pRight, java.lang.Object pContext, Logger pLogger)Applies the operator to the given value
if (pLeft == pRight) {
return Boolean.FALSE;
}
else if (pLeft == null ||
pRight == null) {
return Boolean.FALSE;
}
else {
return super.apply (pLeft, pRight, pContext, pLogger);
}
| public boolean | apply(double pLeft, double pRight, Logger pLogger)Applies the operator to the given double values
return pLeft < pRight;
| public boolean | apply(long pLeft, long pRight, Logger pLogger)Applies the operator to the given long values
return pLeft < pRight;
| public boolean | apply(java.lang.String pLeft, java.lang.String pRight, Logger pLogger)Applies the operator to the given String values
return pLeft.compareTo (pRight) < 0;
| public java.lang.String | getOperatorSymbol()Returns the symbol representing the operator
return "<";
|
|