VMware GemFire Native Client .NET Framework API Reference
|
VMware VMware GemFire Native .NET Reference 10.4.3
|
Provides hash code functions similar to those used by Geode server in Java's java.util.Objects and java.util.Arrays classes. More...
#include <Objects.hpp>
Static Public Member Functions | |
| static Int32 | GetHashCode (Boolean value) |
| Hashes consistent with java.lang.Boolean.hashCode(). | |
| static Int32 | GetHashCode (Char value) |
| Hashes consistent with java.lang.Character.hashCode(). | |
| static Int32 | GetHashCode (DateTime value) |
| Hashes consistent with java.lang.Date.hashCode(). | |
| static Int32 | GetHashCode (DateTime^ value) |
| Hashes consistent with java.util.Date.hashCode(). | |
| static Int32 | GetHashCode (Double value) |
| Hashes consistent with java.lang.Double.hashCode(). | |
| static Int32 | GetHashCode (Int16 value) |
| Hashes consistent with java.lang.Short.hashCode(). | |
| static Int32 | GetHashCode (Int32 value) |
| Hashes consistent with java.lang.Integer.hashCode(). | |
| static Int32 | GetHashCode (Int64 value) |
| Hashes consistent with java.lang.Long.hashCode(). | |
| static Int32 | GetHashCode (Object^ value) |
| Hashes consistent with java.util.Objects.hashCode(Object). | |
| static Int32 | GetHashCode (SByte value) |
| Hashes consistent with java.lang.Byte.hashCode(). | |
| static Int32 | GetHashCode (Single value) |
| Hashes consistent with java.lang.Float.hashCode(). | |
| static Int32 | GetHashCode (String^ value) |
| Hashes consistent with java.lang.String.hashCode(). | |
| static Int32 | GetHashCode (System::Collections::ICollection^ collection) |
| Hashes consistent with java.util.Arrays.hashCode(Object[]) or java.util.List.hashCode(). | |
| static Int32 | GetHashCode (System::Collections::IDictionary^ dictionary) |
| Hashes consistent with java.util.Map.hashCode(). | |
| static Int32 | Hash (... array< Object^>^ values) |
| Hashes consistent with java.util.Objects.hash(Object ...). | |
Detailed Description
Provides hash code functions similar to those used by Geode server in Java's java.util.Objects and java.util.Arrays classes.
Example:
class CustomKey
{
private int a;
private double b;
private String c;
public CustomKey(int a, double b, String c)
{
this.a = a;
this.b = b;
this.c = c;
}
override public int GetHashCode()
{
return Objects.Hash(a, b, c);
}
};
Member Function Documentation
◆ GetHashCode() [1/14]
|
static |
Hashes consistent with java.lang.Boolean.hashCode().
- Parameters
-
value Boolean to hash.
◆ GetHashCode() [2/14]
|
static |
Hashes consistent with java.lang.Character.hashCode().
- Parameters
-
value Character to hash.
◆ GetHashCode() [3/14]
|
static |
Hashes consistent with java.lang.Date.hashCode().
- Parameters
-
value Date to hash.
◆ GetHashCode() [4/14]
|
static |
Hashes consistent with java.util.Date.hashCode().
- Parameters
-
value Date to hash.
◆ GetHashCode() [5/14]
|
static |
Hashes consistent with java.lang.Double.hashCode().
- Parameters
-
value Double to hash.
◆ GetHashCode() [6/14]
|
static |
Hashes consistent with java.lang.Short.hashCode().
- Parameters
-
value Short to hash.
◆ GetHashCode() [7/14]
|
static |
Hashes consistent with java.lang.Integer.hashCode().
- Parameters
-
value Integer to hash.
◆ GetHashCode() [8/14]
|
static |
Hashes consistent with java.lang.Long.hashCode().
- Parameters
-
value Long to hash.
◆ GetHashCode() [9/14]
|
static |
Hashes consistent with java.util.Objects.hashCode(Object).
- Parameters
-
value Object to hash.
◆ GetHashCode() [10/14]
|
static |
Hashes consistent with java.lang.Byte.hashCode().
- Parameters
-
value Byte to hash.
◆ GetHashCode() [11/14]
|
static |
Hashes consistent with java.lang.Float.hashCode().
- Parameters
-
value FLoat to hash.
◆ GetHashCode() [12/14]
|
static |
Hashes consistent with java.lang.String.hashCode().
- Parameters
-
value String to hash.
◆ GetHashCode() [13/14]
|
static |
Hashes consistent with java.util.Arrays.hashCode(Object[]) or java.util.List.hashCode().
- Parameters
-
value Array or List like collection to hash.
◆ GetHashCode() [14/14]
|
static |
Hashes consistent with java.util.Map.hashCode().
- Parameters
-
dictionary Map to hash.
◆ Hash()
|
static |
Hashes consistent with java.util.Objects.hash(Object ...).
- Parameters
-
values Variable arguments to combine into hash.
Apache Geode C++ Cache .NET API Documentation