zinger.bsheet
Class ConditionalIterator
java.lang.Object
zinger.bsheet.ConditionalIterator
- All Implemented Interfaces:
- java.util.Iterator
public class ConditionalIterator
- extends java.lang.Object
- implements java.util.Iterator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iterator
protected final java.util.Iterator iterator
condition
protected final ConditionalIterator.Condition condition
notEnd
protected boolean notEnd
nextValue
protected java.lang.Object nextValue
ConditionalIterator
public ConditionalIterator(java.util.Iterator iterator,
ConditionalIterator.Condition condition)
fetchNext
protected void fetchNext()
throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
throws java.util.NoSuchElementException
- Specified by:
next
in interface java.util.Iterator
- Throws:
java.util.NoSuchElementException
remove
public void remove()
throws java.lang.UnsupportedOperationException
- Specified by:
remove
in interface java.util.Iterator
- Throws:
java.lang.UnsupportedOperationException