Package io.pravega.client.state
Interface Revision
-
- All Superinterfaces:
java.lang.Comparable<Revision>
public interface Revision extends java.lang.Comparable<Revision>
A maker for a version of aRevisioned
object.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description io.pravega.client.state.impl.RevisionImpl
asImpl()
Returns the actual instance.static Revision
fromString(java.lang.String revision)
Deserializes the revision from its serialized from obtained from callingtoString()
.java.lang.String
toString()
Serializes the Revision to a human readable string.
-
-
-
Method Detail
-
asImpl
io.pravega.client.state.impl.RevisionImpl asImpl()
Returns the actual instance. This method prevents other classes from implementing this interface.- Returns:
- Implementation of the revision interface
-
toString
java.lang.String toString()
Serializes the Revision to a human readable string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the Revision.
-
fromString
static Revision fromString(java.lang.String revision)
Deserializes the revision from its serialized from obtained from callingtoString()
.- Parameters:
revision
- A serialized revision.- Returns:
- The Revision object.
-
-