Class ProxyIterator
- java.lang.Object
-
- org.apache.commons.collections.iterators.ProxyIterator
-
-
Constructor Summary
Constructors Constructor Description ProxyIterator()Deprecated.Constructs a newProxyIteratorthat will not function untilsetIterator(Iterator)is called.ProxyIterator(Iterator iterator)Deprecated.Constructs a newProxyIteratorthat will use the given iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IteratorgetIterator()Deprecated.Getter for property iterator.booleanhasNext()Deprecated.Returns true if the underlying iterator has more elements.Objectnext()Deprecated.Returns the next element from the underlying iterator.voidremove()Deprecated.Removes the last returned element from the collection that spawned the underlying iterator.voidsetIterator(Iterator iterator)Deprecated.Setter for property iterator.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ProxyIterator
public ProxyIterator()
Deprecated.Constructs a newProxyIteratorthat will not function untilsetIterator(Iterator)is called.
-
ProxyIterator
public ProxyIterator(Iterator iterator)
Deprecated.Constructs a newProxyIteratorthat will use the given iterator.- Parameters:
iterator- the underlying iterator
-
-
Method Detail
-
hasNext
public boolean hasNext()
Deprecated.Returns true if the underlying iterator has more elements.
-
next
public Object next()
Deprecated.Returns the next element from the underlying iterator.- Specified by:
nextin interfaceIterator- Returns:
- the next element from the underlying iterator
- Throws:
NoSuchElementException- if the underlying iterator raises it because it has no more elements
-
remove
public void remove()
Deprecated.Removes the last returned element from the collection that spawned the underlying iterator.
-
getIterator
public Iterator getIterator()
Deprecated.Getter for property iterator.- Returns:
- Value of property iterator.
-
setIterator
public void setIterator(Iterator iterator)
Deprecated.Setter for property iterator.- Parameters:
iterator- New value of property iterator.
-
-