V - value typepublic class DocumentTreeUpdateResult<V> extends Object
Both old and new values are accessible along with a status of update.
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentTreeUpdateResult.Status |
| Constructor and Description |
|---|
DocumentTreeUpdateResult(org.onosproject.store.service.DocumentPath path,
DocumentTreeUpdateResult.Status status,
org.onosproject.store.service.Versioned<V> newValue,
org.onosproject.store.service.Versioned<V> oldValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
created() |
static <V> DocumentTreeUpdateResult<V> |
illegalModification(org.onosproject.store.service.DocumentPath path) |
static <V> DocumentTreeUpdateResult<V> |
invalidPath(org.onosproject.store.service.DocumentPath path) |
org.onosproject.store.service.Versioned<V> |
newValue() |
org.onosproject.store.service.Versioned<V> |
oldValue() |
org.onosproject.store.service.DocumentPath |
path() |
DocumentTreeUpdateResult.Status |
status() |
String |
toString() |
boolean |
updated() |
public DocumentTreeUpdateResult(org.onosproject.store.service.DocumentPath path,
DocumentTreeUpdateResult.Status status,
org.onosproject.store.service.Versioned<V> newValue,
org.onosproject.store.service.Versioned<V> oldValue)
public static <V> DocumentTreeUpdateResult<V> invalidPath(org.onosproject.store.service.DocumentPath path)
public static <V> DocumentTreeUpdateResult<V> illegalModification(org.onosproject.store.service.DocumentPath path)
public DocumentTreeUpdateResult.Status status()
public org.onosproject.store.service.DocumentPath path()
public org.onosproject.store.service.Versioned<V> oldValue()
public org.onosproject.store.service.Versioned<V> newValue()
public boolean updated()
public boolean created()