Package org.apache.bookkeeper.versioning
Class Versioned<T>
- java.lang.Object
-
- org.apache.bookkeeper.versioning.Versioned<T>
-
- Type Parameters:
T
- value type.
public class Versioned<T> extends java.lang.Object
AVersioned
value represents a value associated with a version.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
T
getValue()
Version
getVersion()
int
hashCode()
void
setValue(T value)
void
setVersion(Version version)
java.lang.String
toString()
-
-
-
Method Detail
-
getValue
public T getValue()
-
getVersion
public Version getVersion()
-
setValue
public void setValue(T value)
-
setVersion
public void setVersion(Version version)
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-