Enum Class ContentHashCode

java.lang.Object
java.lang.Enum<ContentHashCode>
tools.refinery.store.map.ContentHashCode
All Implemented Interfaces:
Serializable, Comparable<ContentHashCode>, Constable

public enum ContentHashCode extends Enum<ContentHashCode>
  • Enum Constant Details

    • PRECISE_SLOW

      public static final ContentHashCode PRECISE_SLOW
      Calculate the hashCode of the contents of this AnyVersionedMap to reduce hash collisions as much as possible, even iterating over the full contents in necessary.
    • APPROXIMATE_FAST

      public static final ContentHashCode APPROXIMATE_FAST
      Compute an approximate hashCode of the contents of this AnyVersionedMap 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 same hashCode irrespectively of the actual contents of the AnyVersionedMap.

  • Method Details

    • values

      public static ContentHashCode[] 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

      public static ContentHashCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null