Show / Hide Table of Contents

Class HashHelper

This static class contains helper functions for calculating hash code values for any group of c# intrinsics.

Inheritance
object
HashHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
public static class HashHelper

Methods

Hash(bool, int)

Calculate a running hash using the boolean value.

Declaration
public static int Hash(bool value, int hash)
Parameters
Type Name Description
bool value

The boolean value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(bool[], int)

Calculate a running hash using the boolean array value.

Declaration
public static int Hash(bool[] values, int hash)
Parameters
Type Name Description
bool[] values

The boolean array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(byte, int)

Calculate a running hash using the byte value.

Declaration
public static int Hash(byte value, int hash)
Parameters
Type Name Description
byte value

The byte value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(byte[], int)

Calculate a running hash using the byte array value.

Declaration
public static int Hash(byte[] values, int hash)
Parameters
Type Name Description
byte[] values

The byte array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(char, int)

Calculate a running hash using the char value.

Declaration
public static int Hash(char value, int hash)
Parameters
Type Name Description
char value

The char value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(char[], int)

Calculate a running hash using the char array value.

Declaration
public static int Hash(char[] values, int hash)
Parameters
Type Name Description
char[] values

The char array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(ICollection, int)

Calculate a running hash using the Collection value. The hash computed over the Collection's entries is order-independent.

Declaration
public static int Hash(ICollection values, int hash)
Parameters
Type Name Description
ICollection values

The ICollection value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(double, int)

Calculate a running hash using the double value.

Declaration
public static int Hash(double value, int hash)
Parameters
Type Name Description
double value

The double value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(double[], int)

Calculate a running hash using the double array value.

Declaration
public static int Hash(double[] values, int hash)
Parameters
Type Name Description
double[] values

The double array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(short, int)

Calculate a running hash using the short value.

Declaration
public static int Hash(short value, int hash)
Parameters
Type Name Description
short value

The short value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(short[], int)

Calculate a running hash using the short array value.

Declaration
public static int Hash(short[] values, int hash)
Parameters
Type Name Description
short[] values

The short array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(int, int)

Calculate a running hash using the int value.

Declaration
public static int Hash(int value, int hash)
Parameters
Type Name Description
int value

The int value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(int[], int)

Calculate a running hash using the int array value.

Declaration
public static int Hash(int[] values, int hash)
Parameters
Type Name Description
int[] values

The int array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(long, int)

Calculate a running hash using the long value.

Declaration
public static int Hash(long value, int hash)
Parameters
Type Name Description
long value

The long value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(long[], int)

Calculate a running hash using the long array value.

Declaration
public static int Hash(long[] values, int hash)
Parameters
Type Name Description
long[] values

The long array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(object, int)

Calculate a running hash using the object value.

Declaration
public static int Hash(object value, int hash)
Parameters
Type Name Description
object value

The object value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(object[], int)

Calculate a running hash using the object array value.

Declaration
public static int Hash(object[] values, int hash)
Parameters
Type Name Description
object[] values

The object array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(float, int)

Calculate a running hash using the float value.

Declaration
public static int Hash(float value, int hash)
Parameters
Type Name Description
float value

The float value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

Hash(float[], int)

Calculate a running hash using the float array value.

Declaration
public static int Hash(float[] values, int hash)
Parameters
Type Name Description
float[] values

The float array value for use in the hash.

int hash

The running hash value.

Returns
Type Description
int

The resulting running hash value.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.