Class PropertyPredicate
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.filter.PropertyPredicate
-
-
Constructor Summary
Constructors Constructor Description PropertyPredicate(@NotNull String name, @NotNull Predicate<PropertyState> propertyPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
apply(NodeState node)
Deprecated.usetest(NodeState)
instead (see OAK-8874)boolean
test(NodeState node)
-
-
-
Constructor Detail
-
PropertyPredicate
public PropertyPredicate(@NotNull @NotNull String name, @NotNull @NotNull Predicate<PropertyState> propertyPredicate)
- Parameters:
name
- name of the propertypropertyPredicate
- predicate on the named property
-
-
Method Detail
-
apply
@Deprecated public boolean apply(NodeState node)
Deprecated.usetest(NodeState)
instead (see OAK-8874)Description copied from interface:Predicate
Returns 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))
.
-
-