public class IntMapper<T> extends java.lang.Object implements Duplicatable
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) |
IntMapper(IntMapper<T> other) |
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)
public java.util.Iterator<T> iterator()
public IntMapper<T> copy()
copy
in interface Duplicatable
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.