|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.util.ArrayIntMapper
public class ArrayIntMapper
An implementation of IIntMapper that uses an array to do the mapping.
Field Summary | |
---|---|
protected int[] |
_array
|
Constructor Summary | |
---|---|
ArrayIntMapper(int[] array)
|
Method Summary | |
---|---|
int |
map(int x)
Return the value of the x th element in the array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int[] _array
Constructor Detail |
---|
public ArrayIntMapper(int[] array)
Method Detail |
---|
public int map(int x)
x
th element in the array.
map
in interface IIntMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |