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 TgetCurrentObject()Getter for the fieldcurrentObject.protected AbstractCollectionWrapper<T>getOriginalCollection()Getter for the fieldoriginalCollection.protected Iterator<T>getOriginalIterator()Getter for the fieldoriginalIterator.booleanhasNext()hasNextTnext()nextvoidremove()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- aAbstractCollectionWrapperobject.originalIterator- aIteratorobject.
-
-
Method Detail
-
hasNext
public boolean hasNext()
hasNext
-
getOriginalIterator
protected Iterator<T> getOriginalIterator()
Getter for the field
originalIterator.- Returns:
- a
Iteratorobject.
-
getOriginalCollection
protected AbstractCollectionWrapper<T> getOriginalCollection()
Getter for the field
originalCollection.- Returns:
- a
AbstractCollectionWrapperobject.
-
getCurrentObject
protected T getCurrentObject()
Getter for the field
currentObject.- Returns:
- a T object.
-
-