Package io.pravega.client.state.impl
Class RevisionImpl
- java.lang.Object
-
- io.pravega.client.state.impl.RevisionImpl
-
public class RevisionImpl extends java.lang.Object implements Revision, java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RevisionImpl
asImpl()
Returns the actual instance.protected boolean
canEqual(java.lang.Object other)
int
compareTo(Revision o)
boolean
equals(java.lang.Object o)
static Revision
fromString(java.lang.String scopedName)
Deserializes the revision from its serialized from obtained from callingRevision.toString()
.int
hashCode()
java.lang.String
toString()
Serializes the Revision to a human readable string.
-
-
-
Method Detail
-
compareTo
public int compareTo(Revision o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Revision>
-
asImpl
public RevisionImpl asImpl()
Description copied from interface:Revision
Returns the actual instance. This method prevents other classes from implementing this interface.
-
toString
public java.lang.String toString()
Description copied from interface:Revision
Serializes the Revision to a human readable string.
-
fromString
public static Revision fromString(java.lang.String scopedName)
Description copied from interface:Revision
Deserializes the revision from its serialized from obtained from callingRevision.toString()
.- Parameters:
scopedName
- A serialized revision.- Returns:
- The Revision object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-