org.omnaest.utils.structure.iterator
Interface ListIteratorIndexBased.ListIteratorIndexBasedSource<E>

Type Parameters:
E -
All Known Implementing Classes:
ListIteratorIndexBased.ListToListIteratorSourceAdapter
Enclosing class:
ListIteratorIndexBased<E>

public static interface ListIteratorIndexBased.ListIteratorIndexBasedSource<E>

Author:
Omnaest
See Also:
ListIteratorIndexBased

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
 

Method Detail

size

int size()
Returns the size of the underlying structure which is the highest index position added by one

Returns:

get

E get(int indexPosition)
Returns the element at the given index position

Parameters:
indexPosition -
Returns:

remove

void remove(int indexPosition)
Removes the element at the given index position

Parameters:
indexPosition -

set

void set(int indexPosition,
         E element)
Sets the element at the given index position

Parameters:
indexPosition -
element -

add

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.

Parameters:
indexPosition -
element -


Copyright © 2013. All Rights Reserved.