Class Compare
- java.lang.Object
-
- org.apache.ofbiz.minilang.method.conditional.Compare
-
public abstract class Compare extends java.lang.Object
Implements a comparison - consisting of an l-value, an r-value, and a comparison operator.
-
-
Constructor Summary
Constructors Constructor Description Compare()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
doCompare(java.lang.Object lValue, java.lang.Object rValue, java.lang.Class<?> type, java.util.Locale locale, java.util.TimeZone timeZone, java.lang.String format)
Returns the result of this comparison.static Compare
getInstance(java.lang.String operator)
Returns aCompare
instance for the specified operator.
-
-
-
Method Detail
-
getInstance
public static Compare getInstance(java.lang.String operator)
Returns aCompare
instance for the specified operator.- Parameters:
operator
-- Returns:
- A
Compare
instance for the specified operator
-
doCompare
public abstract boolean doCompare(java.lang.Object lValue, java.lang.Object rValue, java.lang.Class<?> type, java.util.Locale locale, java.util.TimeZone timeZone, java.lang.String format) throws java.lang.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:
java.lang.Exception
-
-