|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.iterator.ListIteratorIndexBased.ListToListIteratorSourceAdapter<E>
E - public static class ListIteratorIndexBased.ListToListIteratorSourceAdapter<E>
Adapter for any List implementation to act as a ListIteratorIndexBased.ListIteratorIndexBasedSource
| Field Summary | |
|---|---|
protected List<E> |
list
|
| Constructor Summary | |
|---|---|
ListIteratorIndexBased.ListToListIteratorSourceAdapter(List<E> list)
|
|
| Method Summary | |
|---|---|
void |
add(int indexPosition,
E element)
Adds a new element at the given index position moving the old element on that position and all following elements one position further. |
E |
get(int indexPosition)
Returns the element at the given index position |
void |
remove(int indexPosition)
Removes the element at the given index position |
void |
set(int indexPosition,
E element)
Sets the element at the given index position |
int |
size()
Returns the size of the underlying structure which is the highest index position added by one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<E> list
| Constructor Detail |
|---|
public ListIteratorIndexBased.ListToListIteratorSourceAdapter(List<E> list)
list - | Method Detail |
|---|
public int size()
ListIteratorIndexBased.ListIteratorIndexBasedSource
size in interface ListIteratorIndexBased.ListIteratorIndexBasedSource<E>public E get(int indexPosition)
ListIteratorIndexBased.ListIteratorIndexBasedSource
get in interface ListIteratorIndexBased.ListIteratorIndexBasedSource<E>public void remove(int indexPosition)
ListIteratorIndexBased.ListIteratorIndexBasedSource
remove in interface ListIteratorIndexBased.ListIteratorIndexBasedSource<E>
public void set(int indexPosition,
E element)
ListIteratorIndexBased.ListIteratorIndexBasedSource
set in interface ListIteratorIndexBased.ListIteratorIndexBasedSource<E>
public void add(int indexPosition,
E element)
ListIteratorIndexBased.ListIteratorIndexBasedSource
add in interface ListIteratorIndexBased.ListIteratorIndexBasedSource<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||