public interface DataSnapshot
| Modifier and Type | Method and Description |
|---|---|
DataSnapshot |
child(java.lang.String... names)
Navigates in key path, e.g.
|
DataSnapshot |
document()
Navigates to the document path,
e.g.
|
boolean |
exists()
Checks if the data exists.
|
DataSnapshot |
parent()
Navigates to parent key path, e.g.
|
<T> T |
storedValue()
Retrieves a snapshot of the existing data.
|
<T> T |
storedValue(java.lang.Class<T> type)
Retrieves a snapshot of the existing data and parses into the target type.
|
boolean |
unique()
Checks if the data does not exists in the collection.
|
<T> T |
value()
Parses the body depending on content-type.
|
<T> T |
value(java.lang.Class<T> type)
Parses the body depending on content-type into the target type.
|
DataSnapshot child(java.lang.String... names)
DataSnapshot document()
boolean exists()
DataSnapshot parent()
<T> T storedValue()
<T> T storedValue(java.lang.Class<T> type)
storedValue()boolean unique()
<T> T value()
Request.bodyValue() if data not committed,
Response.bodyValue() otherwise.
If body is not set, returns null.
If body can not be parsed, throws an Exception.<T> T value(java.lang.Class<T> type)
value()