com.taco.util
Class ArrayIntMapper

java.lang.Object
  extended by com.taco.util.ArrayIntMapper
All Implemented Interfaces:
IIntMapper

public class ArrayIntMapper
extends java.lang.Object
implements IIntMapper

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 xth element in the array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_array

protected int[] _array
Constructor Detail

ArrayIntMapper

public ArrayIntMapper(int[] array)
Method Detail

map

public int map(int x)
Return the value of the xth element in the array.

Specified by:
map in interface IIntMapper