public static final class OpenCondition.Parameter
extends java.lang.Object
implements com.ibm.commerce.base.helpers.Uniquifiable, java.io.Serializable, com.ibm.websphere.cache.Sizeable
Constructor and Description |
---|
Parameter(java.lang.String name,
java.lang.String value)
This constructor takes the name and value of the parameter.
|
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 |
getName()
Get the name of this parameter.
|
long |
getObjectSize()
Returns the estimated footprint size in bytes
of this object and the objects it contains.
|
OpenCondition.Parameter[] |
getSubParameters()
Gets the array of subparameters for this parameter.
|
java.lang.String |
getValue()
Gets the value for this parameter.
|
int |
hashCode()
Returns a hash code for this object.
|
void |
setName(java.lang.String name)
Sets the name of this parameter.
|
void |
setSubParameters(OpenCondition.Parameter[] subParameters)
Sets the subparameters for this parameter.
|
void |
setValue(java.lang.String value)
Sets the value of this parameter.
|
void |
uniquify()
Reduces memory footprint of this object.
|
public Parameter(java.lang.String name, java.lang.String value)
name
- The name of the parameter.value
- The value of this parameter.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 this parameter.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value of the parameter.public OpenCondition.Parameter[] getSubParameters()
public void setSubParameters(OpenCondition.Parameter[] subParameters)
subParameters
- The subparameters for this parameter.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