Class ConditionList

  • All Implemented Interfaces:, ConditionConstants,,,
    Direct Known Subclasses:
    AndListCondition, OrListCondition

    public abstract class ConditionList
    extends Condition
    This abstract class describes a boolean expression that consists of a list of boolean expressions.
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • ConditionList

        public ConditionList()
    • Method Detail

      • getObjectSize

        public long getObjectSize()
        Returns the estimated footprint size in bytes of this object and the objects it contains.
        Specified by:
        getObjectSize in interface
        getObjectSize in class Condition
        the estimated footprint size in bytes or -1 if a size cannot be determined.
      • setConditions

        public void setConditions(Condition[] conditions)
        Set the array of condition objects.
        conditions - An array of condition objects.
      • getConditions

        public Condition[] getConditions()
        Gets the array of condition objects.
        an array of condition objects.
      • equals

        public boolean equals(java.lang.Object aObject)
        Returns true if the specified object is equivalent to this object.
        equals in class Condition
        aObject - the specified object.
        true if the specified object is equivalent to this object.
      • hashCode

        public int hashCode()
        Returns a hash code for this object. Equal objects must return the same hash code.
        hashCode in class Condition
        the hash code.
      • uniquify

        public void uniquify()

        Reduces memory footprint of this object.

        It is expected that the implementation of this method will use the Uniquee class to replace some or all of its properties with equivalent values from the Uniquee cache, or, if equivalent values are not found, place this object's properties in the Uniquee cache.

        The caller must be able to promise that this object and its properties, recursively, will never be modified again, so that it and its properties can be shared by other objects.

        This method is intended to be called by the Uniquee class.

        Specified by:
        uniquify in interface