Class ListIteratorHavingProperties<T>
- java.lang.Object
-
- psidev.psi.mi.jami.utils.collection.IteratorHavingProperties<T>
-
- psidev.psi.mi.jami.utils.collection.ListIteratorHavingProperties<T>
-
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>
public class ListIteratorHavingProperties<T> extends IteratorHavingProperties<T> implements ListIterator<T>
Iterator for list having properties- Since:
16/01/15
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ListIteratorHavingProperties(AbstractListHavingProperties<T> originalCollection, ListIterator<T> originalIterator)Constructor for ListIteratorHavingProperties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T t)addprotected ListIterator<T>getOriginalIterator()getOriginalIteratorbooleanhasPrevious()hasPreviousTnext()nextintnextIndex()nextIndexTprevious()previousintpreviousIndex()previousIndexvoidset(T t)set-
Methods inherited from class psidev.psi.mi.jami.utils.collection.IteratorHavingProperties
getCurrentObject, getOriginalCollection, hasNext, 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
-
Methods inherited from interface java.util.ListIterator
hasNext, remove
-
-
-
-
Constructor Detail
-
ListIteratorHavingProperties
public ListIteratorHavingProperties(AbstractListHavingProperties<T> originalCollection, ListIterator<T> originalIterator)
Constructor for ListIteratorHavingProperties.
- Parameters:
originalCollection- aAbstractListHavingPropertiesobject.originalIterator- aListIteratorobject.
-
-
Method Detail
-
hasPrevious
public boolean hasPrevious()
hasPrevious
- Specified by:
hasPreviousin interfaceListIterator<T>- Returns:
- a boolean.
-
previous
public T previous()
previous
- Specified by:
previousin interfaceListIterator<T>- Returns:
- a T object.
-
nextIndex
public int nextIndex()
nextIndex
- Specified by:
nextIndexin interfaceListIterator<T>- Returns:
- a int.
-
previousIndex
public int previousIndex()
previousIndex
- Specified by:
previousIndexin interfaceListIterator<T>- Returns:
- a int.
-
set
public void set(T t)
set
- Specified by:
setin interfaceListIterator<T>- Parameters:
t- a T object.
-
add
public void add(T t)
add
- Specified by:
addin interfaceListIterator<T>- Parameters:
t- a T object.
-
getOriginalIterator
protected ListIterator<T> getOriginalIterator()
getOriginalIterator
- Overrides:
getOriginalIteratorin classIteratorHavingProperties<T>- Returns:
- a
ListIteratorobject.
-
next
public T next()
next
- Specified by:
nextin interfaceIterator<T>- Specified by:
nextin interfaceListIterator<T>- Overrides:
nextin classIteratorHavingProperties<T>- Returns:
- a T object.
-
-