Package loci.poi.util
Class IntMapper
- java.lang.Object
-
- loci.poi.util.IntMapper
-
public class IntMapper extends java.lang.ObjectA List of objects that are indexed AND keyed by an int; also allows for getting the index of a value in the listI 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.Object value)Appends the specified element to the end of this listjava.lang.Objectget(int index)intgetIndex(java.lang.Object o)java.util.Iteratoriterator()intsize()
-
-
-
Method Detail
-
add
public boolean add(java.lang.Object value)
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
public java.lang.Object get(int index)
-
getIndex
public int getIndex(java.lang.Object o)
-
iterator
public java.util.Iterator iterator()
-
-