Package io.aether.syncmap
Class VersionedValue<V>
- java.lang.Object
-
- io.aether.syncmap.VersionedValue<V>
-
public class VersionedValue<V> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VersionedValue(V data, long version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)VgetData()longgetVersion()inthashCode()VersionedValue<V>nextVersion(V newData)VersionedValue<V>withData(V newData)
-
-
-
Constructor Detail
-
VersionedValue
public VersionedValue(V data, long version)
-
-
Method Detail
-
getData
public V getData()
-
getVersion
public long getVersion()
-
withData
public VersionedValue<V> withData(V newData)
-
nextVersion
public VersionedValue<V> nextVersion(V newData)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-