Class PropertyPredicate
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.filter.PropertyPredicate
-
-
Constructor Summary
Constructors Constructor Description PropertyPredicate(@NotNull java.lang.String name, @NotNull java.util.function.Predicate<PropertyState> propertyPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanapply(NodeState node)Deprecated, for removal: This API element is subject to removal in a future version.usetest(NodeState)instead (see OAK-8874)booleantest(NodeState node)
-
-
-
Constructor Detail
-
PropertyPredicate
public PropertyPredicate(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.util.function.Predicate<PropertyState> propertyPredicate)- Parameters:
name- name of the propertypropertyPredicate- predicate on the named property
-
-
Method Detail
-
test
public boolean test(NodeState node)
- Specified by:
testin interfacejava.util.function.Predicate<NodeState>
-
apply
@Deprecated(since="1.26.0", forRemoval=true) public boolean apply(NodeState node)Deprecated, for removal: This API element is subject to removal in a future version.usetest(NodeState)instead (see OAK-8874)Description copied from interface:PredicateReturns the result of applying this predicate toinput. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal(a, b)implies thatpredicate.apply(a) == predicate.apply(b)).
-
-