Package org.apache.poi.util
Class IntMapper<T>
java.lang.Object
org.apache.poi.util.IntMapper<T>
A List of objects that are indexed AND keyed by an int; also allows for getting
the index of a value in the list
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
- Author:
- Jason Height
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IntMapper
public IntMapper()create an IntMapper of default size -
IntMapper
public IntMapper(int initialCapacity)
-
-
Method Details
-
add
Appends the specified element to the end of this list- Parameters:
value
- element to be appended to this list.- Returns:
- true (as per the general contract of the Collection.add method).
-
size
public int size() -
get
-
getIndex
-
iterator
-