com.ibm.itim.common
Class AttributeChangeIterator
java.lang.Object
|
+--com.ibm.itim.common.AttributeChangeIterator
- public class AttributeChangeIterator
- extends java.lang.Object
Iterates over a collection of AttributeChangeOperation objects
- Author:
- AAmies
Method Summary |
boolean |
hasNext()
Determines whether there is another element in the sequence |
AttributeChangeOperation |
next()
Gets the next element in the sequence and advances the iterator |
void |
remove()
Remove the last element returned by the iterator. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeChangeIterator
public AttributeChangeIterator(java.util.Collection collection)
- Creates new AttributeChangeIterator. Should be instantiated by
a AttributeChanges object
hasNext
public boolean hasNext()
- Determines whether there is another element in the sequence
- Returns:
- True if there is at least one more element
next
public AttributeChangeOperation next()
- Gets the next element in the sequence and advances the iterator
- Returns:
- The next element in the sequence
remove
public void remove()
throws java.lang.IllegalStateException
- Remove the last element returned by the iterator.
This method can be called only once per
call to next.
- Throws:
java.lang.IllegalStateException
- if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
method.