LessThanOrEqualsOperatorpublic class LessThanOrEqualsOperator extends RelationalOperator The implementation of the less than or equals operator |
Fields Summary |
---|
public static final LessThanOrEqualsOperator | SINGLETON |
Constructors Summary |
---|
public LessThanOrEqualsOperator()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.TRUE;
}
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 "<=";
|
|