Package tools.refinery.store.map
Enum Class ContentHashCode
- All Implemented Interfaces:
Serializable
,Comparable<ContentHashCode>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCompute an approximatehashCode
of the contents of thisAnyVersionedMap
that may have a large number of hash collisions, but can be calculated without iterating over the full contents.Calculate thehashCode
of the contents of thisAnyVersionedMap
to reduce hash collisions as much as possible, even iterating over the full contents in necessary. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentHashCode
Returns the enum constant of this class with the specified name.static ContentHashCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRECISE_SLOW
Calculate thehashCode
of the contents of thisAnyVersionedMap
to reduce hash collisions as much as possible, even iterating over the full contents in necessary. -
APPROXIMATE_FAST
Compute an approximatehashCode
of the contents of thisAnyVersionedMap
that may have a large number of hash collisions, but can be calculated without iterating over the full contents.In the extreme case,
AnyVersionedMap.contentHashCode(ContentHashCode)
may return the samehashCode
irrespectively of the actual contents of theAnyVersionedMap
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-