Class Compare
java.lang.Object
org.apache.ofbiz.minilang.method.conditional.Compare
Implements a comparison - consisting of an l-value, an r-value, and a comparison operator.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Compare
public Compare()
-
-
Method Details
-
getInstance
Returns aCompare
instance for the specified operator.- Parameters:
operator
-- Returns:
- A
Compare
instance for the specified operator
-
doCompare
public abstract boolean doCompare(Object lValue, Object rValue, Class<?> type, Locale locale, TimeZone timeZone, String format) throws Exception Returns the result of this comparison.- Parameters:
lValue
- The object being comparedrValue
- The object being compared totype
- The Java class to be used in the comparisonformat
- Optional format to be used in object type conversionslocale
- Optional locale to be used in object type conversionstimeZone
- Optional time zone to be used in object type conversions- Returns:
- The result of this comparison
- Throws:
Exception
-