V - tree node value typepublic class DocumentTreeEvent<V> extends AbstractEvent<DocumentTreeEvent.Type,DocumentPath>
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentTreeEvent.Type
Nature of document tree node change.
|
| Constructor and Description |
|---|
DocumentTreeEvent(DocumentTreeEvent.Type type,
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() |
subject, time, typepublic DocumentTreeEvent(DocumentTreeEvent.Type type, DocumentPath path, Optional<Versioned<V>> newValue, Optional<Versioned<V>> oldValue)
DocumentTreeEvent.type - type of changepath - 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 Optional<Versioned<V>> newValue()
public Optional<Versioned<V>> oldValue()
public String toString()
toString in class AbstractEvent<DocumentTreeEvent.Type,DocumentPath>Copyright © 2013–2018. All rights reserved.