T - type of traversable resourcepublic interface Traversable<T>
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
findAncestor(Predicate<T> predicate)
Find the first ancestor resource that matches the given predicate condition.
|
Optional<T> |
findAncestorWithProperty(String propertyName)
Find the first ancestor resource containing the given property name.
|
<V> Optional<T> |
findAncestorWithPropertyValue(String propertyName,
V propertyValue)
Find the first ancestor resource where the given property name has the specified value.
|
List<T> |
findDescendants(Predicate<T> predicate)
Get a list of descendant resources that match the given predicate condition.
|
Optional<T> findAncestor(Predicate<T> predicate)
predicate - predicate to match ancestor resources againstOptional resource that matches the predicate conditionOptional<T> findAncestorWithProperty(String propertyName)
propertyName - property name to find on ancestor resourcesOptional resource that contains the property<V> Optional<T> findAncestorWithPropertyValue(String propertyName, V propertyValue)
V - type of valuepropertyName - property name to find on ancestor resourcespropertyValue - value of named property to matchOptional resource that contains the property valueList<T> findDescendants(Predicate<T> predicate)
predicate - predicate to match descendant resources againstCopyright © 2014 CITYTECH, Inc.. All rights reserved.