openjava.ptree.util
Class HashableArray
java.lang.Object
|
+--openjava.ptree.util.HashableArray
- class HashableArray
- extends Object
HashableArray
provides a Object[]
with a hashCode()
and an equals(java.lang.Object)
function, so it can be used as a key in a
Hashtable
.
Field Summary |
(package private) Object[] |
a
|
a
Object[] a
HashableArray
HashableArray(Object[] a)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
arrayHashCode
static int arrayHashCode(Object[] a)
arraysAreEqual
static boolean arraysAreEqual(Object[] a1,
Object[] a2)
- Return whether two arrays are equal (shallow compare).