Class RevisionHistory.HistoryElement
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.tooling.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 nodeint
hashCode()
java.lang.String
toString()
java.lang.String
toString(int depth)
Serialise this element to JSON up to the givendepth
.
-
-
-
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 givendepth
.- Parameters:
depth
-- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
toString(0)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-