V - tree node value typepublic class DocumentTreeEvent<V> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentTreeEvent.Type
Nature of document tree node change.
|
| Constructor and Description |
|---|
DocumentTreeEvent(DocumentPath path,
DocumentTreeEvent.Type type,
Optional<Versioned<V>> newValue,
Optional<Versioned<V>> oldValue)
Constructs a new
DocumentTreeEvent. |
DocumentTreeEvent(DocumentPath path,
Optional<Versioned<V>> newValue,
Optional<Versioned<V>> oldValue)
Constructs a new
DocumentTreeEvent. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Versioned<V>> |
newValue()
Returns the new value.
|
Optional<Versioned<V>> |
oldValue()
Returns the old value.
|
DocumentPath |
path()
Returns the path to the changed node.
|
String |
toString() |
DocumentTreeEvent.Type |
type()
Returns the change type.
|
public DocumentTreeEvent(DocumentPath path, DocumentTreeEvent.Type type, Optional<Versioned<V>> newValue, Optional<Versioned<V>> oldValue)
DocumentTreeEvent.path - path to the nodetype - type of changenewValue - optional new value; will be empty if node was deletedoldValue - optional old value; will be empty if node was createdpublic DocumentTreeEvent(DocumentPath path, Optional<Versioned<V>> newValue, Optional<Versioned<V>> oldValue)
DocumentTreeEvent.path - path to the nodenewValue - optional new value; will be empty if node was deletedoldValue - optional old value; will be empty if node was createdpublic DocumentPath path()
public DocumentTreeEvent.Type type()
public Optional<Versioned<V>> newValue()
public Optional<Versioned<V>> oldValue()