|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.multiarray.IntArrayAdapter
Apply the "Adapter" pattern to convert the interface of Class (int []) to interface IntMap.
Instances of this class are constructed automatically for you when no 'next' argument is provided to the other IntMap constructors.
| Constructor Summary | |
IntArrayAdapter()
|
|
| Method Summary | |
int |
get(int key)
Returns the value to which this Map maps the specified key. |
int |
getLength(int ii)
Traverse the inverse mapping chain to retrieve the dimension length at ii. |
void |
rebind(int[] newAdaptee)
Reset the adaptee converted by this. |
int |
size()
Returns the number of key-value mappings in this Map. |
IntArrayAdapter |
tail(int rank,
Object prev)
Instances of this class are always the tail of an IntMap chain. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IntArrayAdapter()
| Method Detail |
public int get(int key)
get in interface IntMapkey - int
public int size()
size in interface IntMap
public IntArrayAdapter tail(int rank,
Object prev)
this.rebind(new int[rank]);
tail in interface IntMappublic int getLength(int ii)
getLength in interface IntMappublic void rebind(int[] newAdaptee)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||