org.omnaest.utils.structure.collection.list.decorator
Class ListIteratorDecorator<E>
java.lang.Object
org.omnaest.utils.structure.collection.list.decorator.ListIteratorDecorator<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- Serializable, Iterator<E>, ListIterator<E>
- Direct Known Subclasses:
- LockingListIteratorDecorator
public class ListIteratorDecorator<E>
- extends Object
- implements ListIterator<E>, Serializable
Decorator for a ListIterator instance. Overwrite methods in subclasses wherever needed.
- Author:
- Omnaest
- See Also:
- Serialized Form
listIterator
protected final ListIterator<E> listIterator
ListIteratorDecorator
public ListIteratorDecorator(ListIterator<E> listIterator)
- Parameters:
listIterator - - See Also:
ListIteratorDecorator
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<E>- Specified by:
hasNext in interface ListIterator<E>
- Returns:
- See Also:
ListIterator.hasNext()
next
public E next()
- Specified by:
next in interface Iterator<E>- Specified by:
next in interface ListIterator<E>
- Returns:
- See Also:
ListIterator.next()
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious in interface ListIterator<E>
- Returns:
- See Also:
ListIterator.hasPrevious()
previous
public E previous()
- Specified by:
previous in interface ListIterator<E>
- Returns:
- See Also:
ListIterator.previous()
nextIndex
public int nextIndex()
- Specified by:
nextIndex in interface ListIterator<E>
- Returns:
- See Also:
ListIterator.nextIndex()
previousIndex
public int previousIndex()
- Specified by:
previousIndex in interface ListIterator<E>
- Returns:
- See Also:
ListIterator.previousIndex()
remove
public void remove()
- Specified by:
remove in interface Iterator<E>- Specified by:
remove in interface ListIterator<E>
- See Also:
ListIterator.remove()
set
public void set(E e)
- Specified by:
set in interface ListIterator<E>
- Parameters:
e - - See Also:
ListIterator.set(java.lang.Object)
add
public void add(E e)
- Specified by:
add in interface ListIterator<E>
- Parameters:
e - - See Also:
ListIterator.add(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.