Interface Version

All Known Implementing Classes:
ImmutableNode, MapTransaction, ModelVersion

public interface Version
Interface denoting versions of Versioned.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Equivalence of two Version.
    int
    Hashcode should be updated in accordance with equals.
  • Method Details

    • hashCode

      int hashCode()
      Hashcode should be updated in accordance with equals.
      Overrides:
      hashCode in class Object
      Returns:
      a hashcode of the object.
    • equals

      boolean equals(Object o)
      Equivalence of two Version. This equivalence must satisfy the following constraint (in addition to the constraints of Object.equals(Object): if v1 and v2 are Versions, and v1 .equals(v2), then versioned.restore(v1) must be equals to versioned.restore(v2).
      Overrides:
      equals in class Object
      Parameters:
      o - the other object.
      Returns:
      weather the two versions are equals.