Class logic.ConditionValueSet
All Packages Class Hierarchy This Package Previous Next Index
Class logic.ConditionValueSet
Object
|
+----logic.ConditionValueSet
- public class ConditionValueSet
- extends Object
- implements Enumeration
This class encapsulates the notion of a set of ConditionValues
Provides add, remove methods; has a contains() query method; and implements
Enumeration for iteration. Note that one feature of a set is that it doesn't allow
duplicate elements.
- Author:
- Paul Corazza
-
logic.ConditionValueSet()
-
-
logic.ConditionValueSet(ConditionValue)
-
-
addMember(ConditionValue)
-
-
contains(ConditionValue)
-
-
getCardinality()
-
-
getElements()
-
-
hasMoreElements()
- you can call hasMoreElements() repeatedly and get same result;
iterator not incremented
by simply reading
-
nextElement()
- returns the element at current index and then increments iterator
returns null if you try to use an index that's not allowed
-
removeElement(ConditionValue)
-
-
resetIterator()
-
-
toString()
-
ConditionValueSet
public ConditionValueSet()
ConditionValueSet
public ConditionValueSet(ConditionValue cv)
addMember
public boolean addMember(ConditionValue cv)
contains
public boolean contains(ConditionValue cv)
getCardinality
public int getCardinality()
getElements
public logic.ConditionValue[] getElements()
hasMoreElements
public boolean hasMoreElements()
- you can call hasMoreElements() repeatedly and get same result;
iterator not incremented
by simply reading
nextElement
public java.lang.Object nextElement()
- returns the element at current index and then increments iterator
returns null if you try to use an index that's not allowed
removeElement
public boolean removeElement(ConditionValue cv)
resetIterator
public void resetIterator()
toString
public java.lang.String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index