Class RevisionHistory.HistoryElement

  • Enclosing class:
    RevisionHistory

    public static final class RevisionHistory.HistoryElement
    extends java.lang.Object
    Representation of a point in time for a given node.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      @Nullable NodeState getNode()
      Node at given revision
      @NotNull java.lang.String getRevision()
      Revision of the node
      int hashCode()  
      java.lang.String toString()  
      java.lang.String toString​(int depth)
      Serialise this element to JSON up to the given depth.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getRevision

        @NotNull
        public @NotNull java.lang.String getRevision()
        Revision of the node
        Returns:
      • getNode

        @Nullable
        public @Nullable NodeState getNode()
        Node at given revision
        Returns:
      • toString

        public java.lang.String toString​(int depth)
        Serialise this element to JSON up to the given depth.
        Parameters:
        depth -
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        toString(0)
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object