public class IdList<T> extends Object implements IndexedIterable<T>
Modifier and Type | Field and Description |
---|---|
private IdentityHashMap<T,Integer> |
idMap |
private List<T> |
list |
private int |
nextId |
Modifier and Type | Method and Description |
---|---|
void |
add(T value) |
T |
get(int index) |
int |
getRawId(T entry) |
Iterator<T> |
iterator() |
void |
set(T value,
int id) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
private int nextId
private final IdentityHashMap<T,Integer> idMap