|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.utils.SortedIntList<E>
E
- public class SortedIntList<E>
A sorted double linked list which uses ints for indexing
Nested Class Summary | |
---|---|
static class |
SortedIntList.Node<E>
|
Constructor Summary | |
---|---|
SortedIntList()
Creates an ascending list |
Method Summary | |
---|---|
void |
clear()
Clears list |
E |
get(int index)
Retrieves an element at a given index |
E |
insert(int index,
E value)
Inserts an element into the list at the given index |
Iterator<SortedIntList.Node<E>> |
iterator()
Returns an iterator to traverse the list. Only one iterator can be active per list at any given time. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedIntList()
Method Detail |
---|
public E insert(int index, E value)
index
- Index of the elementvalue
- Element to insert
public E get(int index)
index
- Index of the element to retrieve
public void clear()
public int size()
public Iterator<SortedIntList.Node<E>> iterator()
iterator
in interface Iterable<SortedIntList.Node<E>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |