| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(List<String> fieldHierarchy)
Return true if the supplied field hierarchy should be rendered.
|
boolean apply(@Nonnull List<String> fieldHierarchy)
Return true if the supplied field hierarchy should be rendered. A list of strings represents a hierarchy of
objects, where each element is the parent element of the next. E.g. a list ["foo", "bar", "baz"] would
map to a JSON object hierarchy like this: {"foo":{"bar":{"baz":"some value"}}}. I.e. a FieldPredicate
matching this list would cause the "baz" field to be rendered.
Implementations of this interface will not accept null values. They may throw IllegalArgumentException
when confronted with empty lists.
apply in interface com.google.common.base.Predicate<List<String>>NullPointerException - if the supplied list is null or contains null valuesIllegalArgumentException - if the supplied list is emptyCopyright © 2015. All rights reserved.