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

Constructor Index

 o logic.ConditionValueSet()
 o logic.ConditionValueSet(ConditionValue)

Method Index

 o addMember(ConditionValue)
 o contains(ConditionValue)
 o getCardinality()
 o getElements()
 o hasMoreElements()
you can call hasMoreElements() repeatedly and get same result; iterator not incremented by simply reading
 o nextElement()
returns the element at current index and then increments iterator returns null if you try to use an index that's not allowed
 o removeElement(ConditionValue)
 o resetIterator()
 o toString()

Constructors

 o ConditionValueSet
public ConditionValueSet()
 o ConditionValueSet
public ConditionValueSet(ConditionValue cv)

Methods

 o addMember
public boolean addMember(ConditionValue cv)
 o contains
public boolean contains(ConditionValue cv)
 o getCardinality
public int getCardinality()
 o getElements
public logic.ConditionValue[] getElements()
 o hasMoreElements
public boolean hasMoreElements()
you can call hasMoreElements() repeatedly and get same result; iterator not incremented by simply reading

 o 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

 o removeElement
public boolean removeElement(ConditionValue cv)
 o resetIterator
public void resetIterator()
 o toString
public java.lang.String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index