Interface IntMapper
Maps
int
values of a range [0..size-1]
to other
int
values.- Since:
- JChem 5.12
-
Method Summary
-
Method Details
-
map
- Parameters:
index
- the input- Returns:
- the mapped input
- Throws:
IllegalArgumentException
- if index is out of range
-
getSize
int getSize()Returns the number of elements that can be mapped bymap(int)
. The minimum element is always zero. The maximum element issize-1
wheresize
is the element count returned by this method. That is, the range is[0..size-1]
.- Returns:
- the number of elements in the range
-
getMap
int[] getMap()
-