public final class OpenCondition extends Condition implements com.ibm.commerce.base.helpers.Uniquifiable, java.io.Serializable, com.ibm.websphere.cache.Sizeable
Modifier and Type | Class and Description |
---|---|
static class | OpenCondition.Parameter
This class describes an open condition parameter.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright.
|
Constructor and Description |
---|
OpenCondition(java.lang.String name)
This constructor lets you specify the open condition name.
|
OpenCondition(java.lang.String name, OpenCondition.Parameter parameter)
This constructor lets you specify the open condition name and a single parameter.
|
OpenCondition(java.lang.String name, OpenCondition.Parameter[] parameters)
This constructor lets you specify the open condition name and an array of parameter objects.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object | clone()
Returns a clone of this condition object.
|
boolean | equals(java.lang.Object aObject)
Returns true if the specified object is equivalent to this object.
|
boolean | evaluate(Evaluator evaluator)
This method evaluates the open condition.
|
java.lang.String | getName()
Gets the name of the open condition.
|
long | getObjectSize()
Returns the estimated footprint size in bytes of this object and the objects it contains.
|
OpenCondition.Parameter[] | getParameters()
Gets the array of parameter objects.
|
int | hashCode()
Returns a hash code for this object.
|
void | setName(java.lang.String name)
Sets the name of the open condition.
|
void | setParameters(OpenCondition.Parameter[] parameters)
Sets the array of parameter objects.
|
void | uniquify()
Reduces memory footprint of this object.
|
public static final java.lang.String COPYRIGHT
public OpenCondition(java.lang.String name)
public OpenCondition(java.lang.String name, OpenCondition.Parameter parameter)
public OpenCondition(java.lang.String name, OpenCondition.Parameter[] parameters)
public long getObjectSize()
public java.lang.Object clone()
public java.lang.String getName()
public void setName(java.lang.String name)
public OpenCondition.Parameter[] getParameters()
public void setParameters(OpenCondition.Parameter[] parameters)
public boolean evaluate(Evaluator evaluator)
public boolean equals(java.lang.Object aObject)
public int hashCode()
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.