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
Constructor and Description |
---|
Qualifier(java.lang.String name,
java.lang.String data)
This constructor takes the name and data for the qualifier.
|
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.
|
public Qualifier(java.lang.String name, java.lang.String data)
name
- The name of the qualifier.data
- The data for the qualifier.public long getObjectSize()
getObjectSize
in interface com.ibm.websphere.cache.Sizeable
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the qualifier.public java.lang.String getData()
public void setData(java.lang.String data)
data
- The data for the qualifier.public boolean equals(java.lang.Object aObject)
equals
in class java.lang.Object
aObject
- the specified object.public int hashCode()
hashCode
in class java.lang.Object
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.
uniquify
in interface com.ibm.commerce.base.helpers.Uniquifiable