|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wbiserver.brules.mgmt.UnmodifiableIterator<E>
E
- The type of object returned by the iterator.public class UnmodifiableIterator<E>
This class implements an unmodifiable iterator based on another iterator. The
remove
method from the Iterator
interface is not supported and
will throw an UnsupportedOperationException
if called.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Constructor Summary | |
---|---|
UnmodifiableIterator(java.util.Iterator<E> iter)
Constructor for UnmodifiableIterator class. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
E |
next()
Returns the next element in the iteration. |
void |
remove()
Unsupported method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public UnmodifiableIterator(java.util.Iterator<E> iter)
UnmodifiableIterator
class.
iter
- The Iterator
that this object is to be based on.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public E next()
hasNext()
method returns false will return each element in the underlying
collection exactly once.
next
in interface java.util.Iterator<E>
public void remove()
UnsupportedOperationException
if called.
remove
in interface java.util.Iterator<E>
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |