Class IteratorWrapper<T>
- java.lang.Object
-
- psidev.psi.mi.jami.utils.collection.IteratorWrapper<T>
-
-
Constructor Summary
Constructors Constructor Description IteratorWrapper(AbstractCollectionWrapper<T> originalCollection, Iterator<T> originalIterator)
Constructor for IteratorWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
getCurrentObject()
Getter for the fieldcurrentObject
.protected AbstractCollectionWrapper<T>
getOriginalCollection()
Getter for the fieldoriginalCollection
.protected Iterator<T>
getOriginalIterator()
Getter for the fieldoriginalIterator
.boolean
hasNext()
hasNextT
next()
nextvoid
remove()
remove-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
IteratorWrapper
public IteratorWrapper(AbstractCollectionWrapper<T> originalCollection, Iterator<T> originalIterator)
Constructor for IteratorWrapper.
- Parameters:
originalCollection
- aAbstractCollectionWrapper
object.originalIterator
- aIterator
object.
-
-
Method Detail
-
hasNext
public boolean hasNext()
hasNext
-
getOriginalIterator
protected Iterator<T> getOriginalIterator()
Getter for the field
originalIterator
.- Returns:
- a
Iterator
object.
-
getOriginalCollection
protected AbstractCollectionWrapper<T> getOriginalCollection()
Getter for the field
originalCollection
.- Returns:
- a
AbstractCollectionWrapper
object.
-
getCurrentObject
protected T getCurrentObject()
Getter for the field
currentObject
.- Returns:
- a T object.
-
-