com.ibm.commerce.condition

Class SimpleCondition.Qualifier

  • java.lang.Object
    • com.ibm.commerce.condition.SimpleCondition.Qualifier
  • All Implemented Interfaces:
    com.ibm.commerce.base.helpers.Uniquifiable, com.ibm.commerce.datatype.Hashable, com.ibm.websphere.cache.Sizeable, java.io.Serializable
    Enclosing class:
    SimpleCondition


    public static final class SimpleCondition.Qualifier
    extends java.lang.Object
    implements com.ibm.commerce.base.helpers.Uniquifiable, java.io.Serializable, com.ibm.websphere.cache.Sizeable
    This class describes a simple condition qualifier.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface com.ibm.commerce.base.helpers.Uniquifiable

        COPYRIGHT
    • Constructor Summary

      Constructors 
      Constructor and Description
      Qualifier(java.lang.String name, java.lang.String data)
      This constructor takes the name and data for the qualifier.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object clone() 
      boolean equals(java.lang.Object aObject)
      Returns true if the specified object is equivalent to this object.
      java.lang.String getData()
      Gets the data for the qualifier.
      java.lang.String getName()
      Gets the name of the qualifier.
      long getObjectSize()
      Returns the estimated footprint size in bytes of this object and the objects it contains.
      int hashCode()
      Returns a hash code for this object.
      void setData(java.lang.String data)
      Sets the data for the qualifier.
      void setName(java.lang.String name)
      Sets the name of the qualifier.
      void uniquify()
      Reduces memory footprint of this object.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Qualifier

        public Qualifier(java.lang.String name,
                         java.lang.String data)
        This constructor takes the name and data for the qualifier.
        Parameters:
        name - The name of the qualifier.
        data - The data for the qualifier.
    • 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
        Returns:
        the estimated footprint size in bytes or -1 if a size cannot be determined.
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • getName

        public java.lang.String getName()
        Gets the name of the qualifier.
        Returns:
        The name of the qualifier.
      • setName

        public void setName(java.lang.String name)
        Sets the name of the qualifier.
        Parameters:
        name - The name of the qualifier.
      • getData

        public java.lang.String getData()
        Gets the data for the qualifier.
        Returns:
        The data for the qualifier.
      • setData

        public void setData(java.lang.String data)
        Sets the data for the qualifier.
        Parameters:
        data - The data for the qualifier.
      • equals

        public boolean equals(java.lang.Object aObject)
        Returns true if the specified object is equivalent to this object.
        Overrides:
        equals in class java.lang.Object
        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 java.lang.Object
        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