Class IteratorHavingProperties<T>
- java.lang.Object
-
- psidev.psi.mi.jami.utils.collection.IteratorHavingProperties<T>
-
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
ListIteratorHavingProperties
public class IteratorHavingProperties<T> extends Object implements Iterator<T>
Iterator for list having properties- Since:
16/01/15
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description IteratorHavingProperties(AbstractListHavingProperties<T> originalCollection, Iterator<T> originalIterator)
Constructor for IteratorHavingProperties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
getCurrentObject()
Getter for the fieldcurrentObject
.protected AbstractListHavingProperties<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
-
IteratorHavingProperties
public IteratorHavingProperties(AbstractListHavingProperties<T> originalCollection, Iterator<T> originalIterator)
Constructor for IteratorHavingProperties.
- Parameters:
originalCollection
- aAbstractListHavingProperties
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 AbstractListHavingProperties<T> getOriginalCollection()
Getter for the field
originalCollection
.- Returns:
- a
AbstractListHavingProperties
object.
-
getCurrentObject
protected T getCurrentObject()
Getter for the field
currentObject
.- Returns:
- a T object.
-
-