com.ibm.commerce.condition

Class ConditionList

  • All Implemented Interfaces:
    com.ibm.commerce.base.helpers.Uniquifiable, ConditionConstants, com.ibm.commerce.datatype.Hashable, com.ibm.websphere.cache.Sizeable, java.io.Serializable
    Direct Known Subclasses:
    AndListCondition, OrListCondition


    public abstract class ConditionList
    extends Condition
    implements com.ibm.commerce.base.helpers.Uniquifiable, java.io.Serializable, com.ibm.websphere.cache.Sizeable
    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 com.ibm.websphere.cache.Sizeable
        Overrides:
        getObjectSize in class Condition
        Returns:
        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.
        Parameters:
        conditions - An array of condition objects.
      • getConditions

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

        public boolean equals(java.lang.Object aObject)
        Returns true if the specified object is equivalent to this object.
        Overrides:
        equals in class Condition
        Parameters:
        aObject - the specified object.
        Returns:
        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.
        Overrides:
        hashCode in class Condition
        Returns:
        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 com.ibm.commerce.base.helpers.Uniquifiable