org.eigenbase.util
Class HashableArray
java.lang.Object
org.eigenbase.util.HashableArray
public 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
public HashableArray(Object[] a)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
arrayHashCode
public static int arrayHashCode(Object[] a)
arraysAreEqual
public static boolean arraysAreEqual(Object[] a1,
Object[] a2)
- Returns whether two arrays are equal (deep compare).