E
- list element type@StoreNotUseStandardSerialization @StorableClass public class LinkedListSupportIterator<E> extends Object implements ListIterator<E>, Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
indexOfNext
index of next
not transient for persistence |
protected int |
indexOfPrevious
index of previous
not transient for persistence |
protected boolean |
keepPrevious |
protected LinkedListSupportManager<E> |
listManager
the list this iterator iterate in
|
protected int |
modificationCount |
protected ILinkedListSupportNode<E> |
nextNode
next node for iteration
not transient for persistence |
protected ILinkedListSupportNode<E> |
previousNode
previous node for iteration
not transient for persistence |
protected ILinkedListSupportNode<E> |
removable
removable node
not transient for persistence |
Constructor and Description |
---|
LinkedListSupportIterator(LinkedListSupportIterator<E> iterator) |
LinkedListSupportIterator(LinkedListSupportManager<E> listManager) |
LinkedListSupportIterator(LinkedListSupportManager<E> listManager,
boolean descending) |
LinkedListSupportIterator(LinkedListSupportManager<E> listManager,
int index) |
Modifier and Type | Method and Description |
---|---|
void |
add(E element) |
protected void |
checkListChange() |
int |
getIndexOfNext() |
int |
getIndexOfPrevious() |
LinkedListSupportManager<E> |
getListManager() |
int |
getModificationCount() |
ILinkedListSupportNode<E> |
getNextNode() |
ILinkedListSupportNode<E> |
getPreviousNode() |
ILinkedListSupportNode<E> |
getRemovable() |
boolean |
hasNext() |
boolean |
hasPrevious() |
protected boolean |
isRemovableLinked() |
static LinkedListSupportIterator |
newInstance(IInstanceFactory instanceFactory,
LinkedListSupportManager listManager) |
static LinkedListSupportIterator |
newInstance(IInstanceFactory instanceFactory,
LinkedListSupportManager listManager,
boolean descending) |
static LinkedListSupportIterator |
newInstance(IInstanceFactory instanceFactory,
LinkedListSupportManager listManager,
int index) |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
protected E |
removeReturnElement() |
void |
set(E element) |
protected LinkedListSupportManager<E> listManager
protected ILinkedListSupportNode<E> nextNode
protected ILinkedListSupportNode<E> previousNode
protected int indexOfNext
protected int indexOfPrevious
protected ILinkedListSupportNode<E> removable
protected final boolean keepPrevious
protected int modificationCount
public LinkedListSupportIterator(LinkedListSupportIterator<E> iterator)
public LinkedListSupportIterator(LinkedListSupportManager<E> listManager)
public LinkedListSupportIterator(LinkedListSupportManager<E> listManager, int index)
public LinkedListSupportIterator(LinkedListSupportManager<E> listManager, boolean descending)
public static LinkedListSupportIterator newInstance(IInstanceFactory instanceFactory, LinkedListSupportManager listManager)
public static LinkedListSupportIterator newInstance(IInstanceFactory instanceFactory, LinkedListSupportManager listManager, int index)
public static LinkedListSupportIterator newInstance(IInstanceFactory instanceFactory, LinkedListSupportManager listManager, boolean descending)
public int getModificationCount()
public boolean hasNext()
public E next()
public boolean hasPrevious()
hasPrevious
in interface ListIterator<E>
public E previous()
previous
in interface ListIterator<E>
public int previousIndex()
previousIndex
in interface ListIterator<E>
public int nextIndex()
nextIndex
in interface ListIterator<E>
public void remove()
protected E removeReturnElement()
public void add(E element)
add
in interface ListIterator<E>
public void set(E element)
set
in interface ListIterator<E>
protected void checkListChange()
protected boolean isRemovableLinked()
public int getIndexOfNext()
public int getIndexOfPrevious()
public LinkedListSupportManager<E> getListManager()
public ILinkedListSupportNode<E> getNextNode()
public ILinkedListSupportNode<E> getPreviousNode()
public ILinkedListSupportNode<E> getRemovable()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.