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 void
add(T t)
addprotected ListIterator<T>
getOriginalIterator()
getOriginalIteratorboolean
hasPrevious()
hasPreviousT
next()
nextint
nextIndex()
nextIndexT
previous()
previousint
previousIndex()
previousIndexvoid
set(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
- aAbstractListHavingProperties
object.originalIterator
- aListIterator
object.
-
-
Method Detail
-
hasPrevious
public boolean hasPrevious()
hasPrevious
- Specified by:
hasPrevious
in interfaceListIterator<T>
- Returns:
- a boolean.
-
previous
public T previous()
previous
- Specified by:
previous
in interfaceListIterator<T>
- Returns:
- a T object.
-
nextIndex
public int nextIndex()
nextIndex
- Specified by:
nextIndex
in interfaceListIterator<T>
- Returns:
- a int.
-
previousIndex
public int previousIndex()
previousIndex
- Specified by:
previousIndex
in interfaceListIterator<T>
- Returns:
- a int.
-
set
public void set(T t)
set
- Specified by:
set
in interfaceListIterator<T>
- Parameters:
t
- a T object.
-
add
public void add(T t)
add
- Specified by:
add
in interfaceListIterator<T>
- Parameters:
t
- a T object.
-
getOriginalIterator
protected ListIterator<T> getOriginalIterator()
getOriginalIterator
- Overrides:
getOriginalIterator
in classIteratorHavingProperties<T>
- Returns:
- a
ListIterator
object.
-
next
public T next()
next
- Specified by:
next
in interfaceIterator<T>
- Specified by:
next
in interfaceListIterator<T>
- Overrides:
next
in classIteratorHavingProperties<T>
- Returns:
- a T object.
-
-