Package de.mhus.lib.core.util
Class EmptyListOperator<E>
- java.lang.Object
-
- de.mhus.lib.core.util.EmptyListOperator<E>
-
- All Implemented Interfaces:
de.mhus.lib.basics.ReadOnly,Iterator<E>,ListIterator<E>
public class EmptyListOperator<E> extends Object implements ListIterator<E>, de.mhus.lib.basics.ReadOnly
-
-
Constructor Summary
Constructors Constructor Description EmptyListOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(E e)booleanhasNext()booleanhasPrevious()Enext()intnextIndex()Eprevious()intpreviousIndex()voidremove()voidset(E e)-
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
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<E>
-
previous
public E previous()
- Specified by:
previousin interfaceListIterator<E>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceListIterator<E>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceListIterator<E>
-
remove
public void remove()
-
set
public void set(E e)
- Specified by:
setin interfaceListIterator<E>
-
add
public void add(E e)
- Specified by:
addin interfaceListIterator<E>
-
-