V - tree node value typepublic class DocumentTreeEvent<V>
extends java.lang.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,
                 java.util.Optional<Versioned<V>> newValue,
                 java.util.Optional<Versioned<V>> oldValue)
Constructs a new  
DocumentTreeEvent. | 
DocumentTreeEvent(DocumentPath path,
                 java.util.Optional<Versioned<V>> newValue,
                 java.util.Optional<Versioned<V>> oldValue)
Constructs a new  
DocumentTreeEvent. | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Optional<Versioned<V>> | 
newValue()
Returns the new value. 
 | 
java.util.Optional<Versioned<V>> | 
oldValue()
Returns the old value. 
 | 
DocumentPath | 
path()
Returns the path to the changed node. 
 | 
java.lang.String | 
toString()  | 
DocumentTreeEvent.Type | 
type()
Returns the change type. 
 | 
public DocumentTreeEvent(DocumentPath path, DocumentTreeEvent.Type type, java.util.Optional<Versioned<V>> newValue, java.util.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, java.util.Optional<Versioned<V>> newValue, java.util.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 java.util.Optional<Versioned<V>> newValue()
public java.util.Optional<Versioned<V>> oldValue()
public java.lang.String toString()
toString in class java.lang.Object