|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.core.util.HashUtil
public final class HashUtil
A utility for generating unique hash values.
| Field Summary | |
|---|---|
protected static int |
CONSTANT
An arbitrary constant non-zero value. |
protected static int |
PRIME
An odd prime. |
| Method Summary | |
|---|---|
static int |
hash(boolean field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
static int |
hash(byte field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
static int |
hash(char field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
static int |
hash(double field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
static int |
hash(float field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
static int |
hash(int field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
static int |
hash(int base,
boolean field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(int base,
byte field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(int base,
char field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(int base,
double field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(int base,
float field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(int base,
int field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(int base,
long field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(int base,
java.lang.Object object)
Retrieves a unique hash value for the specified object, based on the specified base value. |
static int |
hash(int base,
short field)
Retrieves a unique hash value for the specified field, based on the specified base value. |
static int |
hash(long field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
static int |
hash(java.lang.Object object)
Retrieves a unique hash value for the specified object, based on a constant base value. |
static int |
hash(short field)
Retrieves a unique hash value for the specified field, based on a constant base value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int CONSTANT
protected static final int PRIME
| Method Detail |
|---|
public static int hash(int base,
boolean field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(boolean field)
field - The field which to retrieve a hash value.
public static int hash(int base,
byte field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(byte field)
field - The field which to retrieve a hash value.
public static int hash(int base,
char field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(char field)
field - The field which to retrieve a hash value.
public static int hash(int base,
short field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(short field)
field - The field which to retrieve a hash value.
public static int hash(int base,
int field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(int field)
field - The field which to retrieve a hash value.
public static int hash(int base,
long field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(long field)
field - The field which to retrieve a hash value.
public static int hash(int base,
float field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(float field)
field - The field which to retrieve a hash value.
public static int hash(int base,
double field)
base - The value on which to base the hash value.field - The field which to retrieve a hash value.
public static int hash(double field)
field - The field which to retrieve a hash value.
public static int hash(int base,
java.lang.Object object)
base - The value on which to base the hash value.object - The object for which to retrieve a hash value.
public static int hash(java.lang.Object object)
object - The object for which to retrieve a hash value.
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.