Interface AnyVersionedMap

All Superinterfaces:
Versioned
All Known Subinterfaces:
VersionedMap<K,V>
All Known Implementing Classes:
VersionedMapDeltaImpl, VersionedMapStateImpl

public sealed interface AnyVersionedMap extends Versioned permits VersionedMap<K,V>
  • Method Details

    • getSize

      long getSize()
    • contentHashCode

      int contentHashCode(ContentHashCode mode)
    • contentEquals

      boolean contentEquals(AnyVersionedMap other)
    • hashCode

      @Deprecated(since="0.0.0") int hashCode()
      Deprecated.
      AnyVersionedMap instances are mutable, and it is inappropriate to use them as keys in hash-based collections. Use contentHashCode(ContentHashCode) to compute a hashCode for a AnyVersionedMap instance according to its contents.
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this object.
    • equals

      @Deprecated(since="0.0.0") boolean equals(Object obj)
      Deprecated.
      AnyVersionedMap instances are mutable, and it is inappropriate to use them as keys in hash-based collections. Use contentEquals(AnyVersionedMap) to compare two AnyVersionedMap instances by their contents.
      Compares two objects by reference.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument.
    • checkIntegrity

      void checkIntegrity()
      Checks the integrity of the map, and throws an exception if an inconsistency is detected.