public class Misc
extends java.lang.Object
| Constructor and Description |
|---|
Misc() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Returns true iff the two specified, possibly null, objects are equal.
|
static int |
hash(java.lang.String s)
Computes a hash code for the given string using a variant of the
algorithm due to P.J.Weinberger described in the Dragon Book.
|
static int |
hashCode(double x)
Returns a hash code for the specified double.
|
static int |
hashCode(java.lang.Object object)
Returns the hashcode of the specified, possibly null object.
|
public static final boolean equals(java.lang.Object o1,
java.lang.Object o2)
public static final int hashCode(java.lang.Object object)
public static final int hashCode(double x)
public static final int hash(java.lang.String s)