Class UuidPredicate
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.filter.UuidPredicate
-
public class UuidPredicate extends java.lang.Object implements java.util.function.Predicate<NodeState>, Predicate<NodeState>
A predicate for matching against a list of UUIDs. This predicate holds whenever theNodeState
passed to its apply functions has ajcr:uuid
property and the value of that property matches any of the UUIDs that has been passed to the predicate's constructor.
-
-
Constructor Summary
Constructors Constructor Description UuidPredicate(@NotNull java.lang.String[] uuids)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
apply(NodeState node)
Deprecated, for removal: This API element is subject to removal in a future version.usetest(NodeState)
instead (see OAK-8874)boolean
test(NodeState node)
-
-
-
Method Detail
-
test
public boolean test(NodeState node)
- Specified by:
test
in 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: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))
.
-
-