public class IntMapper<T> extends Object
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
Constructor and Description |
---|
IntMapper()
create an IntMapper of default size
|
IntMapper(int initialCapacity) |
public IntMapper()
public IntMapper(int initialCapacity)
public boolean add(T value)
value
- element to be appended to this list.public int size()
public T get(int index)
public int getIndex(T o)
Copyright © 2020. All rights reserved.