I am happy is someone wants to re-implement this without using the internal list and hashmap. If so could you please make sure that you can add elements half way into the list and have the value-key mappings update
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final List | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true (as per the general contract of the Collection.add method).element to be appended to this list. value)Appends the specified element to the end of this list |
| public IntMapper | |
| public T | |
| public List | |
| public int | |
| public Iterator | |
| public int | |
| public Spliterator | spliterator()
Overrides default java. Creates a |
| _default_size | back to summary |
|---|---|
| private static final int _default_size | |
| elements | back to summary |
|---|---|
| private final List<T> elements | |
| valueKeyMap | back to summary |
|---|---|
| private final Map<T, Integer> valueKeyMap | |
| IntMapper | back to summary |
|---|---|
| public IntMapper() create an IntMapper of default size | |
| IntMapper | back to summary |
|---|---|
| public IntMapper(final int initialCapacity) | |
| IntMapper | back to summary |
|---|---|
| public IntMapper(IntMapper<T> other) | |
| add | back to summary |
|---|---|
| public boolean add(final T value) Appends the specified element to the end of this list
| |
| copy | back to summary |
|---|---|
| public IntMapper Implements org.
| |
| get | back to summary |
|---|---|
| public T get(int index) | |
| getElements | back to summary |
|---|---|
| public List | |
| getIndex | back to summary |
|---|---|
| public int getIndex(T o) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| size | back to summary |
|---|---|
| public int size() | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |