V - value typepublic class MapValue<V> extends Object implements Comparable<MapValue<V>>
| Modifier and Type | Class and Description |
|---|---|
static class |
MapValue.Digest
Digest or summary of a MapValue for use during Anti-Entropy exchanges.
|
| Constructor and Description |
|---|
MapValue(V value,
org.onosproject.store.Timestamp timestamp) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MapValue<V> o) |
MapValue.Digest |
digest() |
boolean |
equals(Object other) |
V |
get() |
int |
hashCode() |
boolean |
isAlive() |
boolean |
isNewerThan(MapValue<V> other) |
boolean |
isNewerThan(org.onosproject.store.Timestamp timestamp) |
boolean |
isTombstone() |
org.onosproject.store.Timestamp |
timestamp() |
static <U> MapValue<U> |
tombstone(org.onosproject.store.Timestamp timestamp)
Creates a tombstone value with the specified timestamp.
|
String |
toString() |
public MapValue(V value, org.onosproject.store.Timestamp timestamp)
public static <U> MapValue<U> tombstone(org.onosproject.store.Timestamp timestamp)
U - value typetimestamp - timestamp for tombstonepublic boolean isTombstone()
public boolean isAlive()
public org.onosproject.store.Timestamp timestamp()
public V get()
public int compareTo(MapValue<V> o)
compareTo in interface Comparable<MapValue<V>>public boolean isNewerThan(org.onosproject.store.Timestamp timestamp)
public MapValue.Digest digest()
Copyright © 2016. All rights reserved.