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 aRevisionedobject.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description io.pravega.client.state.impl.RevisionImplasImpl()Returns the actual instance.static RevisionfromString(java.lang.String revision)Deserializes the revision from its serialized from obtained from callingtoString().java.lang.StringtoString()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:
toStringin 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.
-
-