Class 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 a Compare instance for the specified operator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Compare

        public Compare()
    • Method Detail

      • getInstance

        public static Compare getInstance​(java.lang.String operator)
        Returns a Compare 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 compared
        rValue - The object being compared to
        type - The Java class to be used in the comparison
        format - Optional format to be used in object type conversions
        locale - Optional locale to be used in object type conversions
        timeZone - Optional time zone to be used in object type conversions
        Returns:
        The result of this comparison
        Throws:
        java.lang.Exception