|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.util.IndexMap
This class builds a HashMap of indices of an array from a given
array. The map can be subsequently used for quick lookups of the position
of one of the items in the array.
| Method Summary | |
static java.util.Map |
buildMap(java.lang.Object[] array)
Returns a HashMap of indices of an array from a given array.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final java.util.Map buildMap(java.lang.Object[] array)
HashMap of indices of an array from a given array.
The map can then be used for quick lookups of the position of one of the
objects previously stored in the array.
array - the source array
HashMap with Integer objects as values,
which represent the objects index in the array.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||