public class IntMapper 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
Modifier and Type | Field and Description |
---|---|
private static int |
_default_size |
private List |
elements |
private Map |
valueKeyMap |
Constructor and Description |
---|
IntMapper()
create an IntMapper of default size
|
IntMapper(int initialCapacity) |
private List elements
private Map valueKeyMap
private static final int _default_size
public IntMapper()
public IntMapper(int initialCapacity)
public boolean add(Object value)
value
- element to be appended to this list.public int size()
public Object get(int index)
public int getIndex(Object o)
public Iterator iterator()
Copyright © 2015 Open Microscopy Environment