Package com.scurrilous.circe.params
Enum MurmurHash3Variant
- java.lang.Object
-
- java.lang.Enum<MurmurHash3Variant>
-
- com.scurrilous.circe.params.MurmurHash3Variant
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MurmurHash3Variant>
public enum MurmurHash3Variant extends java.lang.Enum<MurmurHash3Variant>
Enumeration of MurmurHash3 variants.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
algorithm()
Returns the algorithm name corresponding to this variant.static MurmurHash3Variant
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MurmurHash3Variant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X86_32
public static final MurmurHash3Variant X86_32
32-bit variant (optimized for x86).
-
X86_128
public static final MurmurHash3Variant X86_128
128-bit variant optimized for x86.
-
X64_128
public static final MurmurHash3Variant X64_128
128-bit variant optimized for x64.
-
-
Method Detail
-
values
public static MurmurHash3Variant[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MurmurHash3Variant c : MurmurHash3Variant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MurmurHash3Variant valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
algorithm
public java.lang.String algorithm()
Returns the algorithm name corresponding to this variant.- Returns:
- this variant's algorithm name
-
-