Class PropertyPredicate

  • All Implemented Interfaces:
    Predicate<org.apache.jackrabbit.oak.spi.state.NodeState>, java.util.function.Predicate<org.apache.jackrabbit.oak.spi.state.NodeState>

    public class PropertyPredicate
    extends java.lang.Object
    implements java.util.function.Predicate<org.apache.jackrabbit.oak.spi.state.NodeState>, Predicate<org.apache.jackrabbit.oak.spi.state.NodeState>
    Predicate on property values. This property holds if and only if the node has a property of the given name and the given propertyPredicate holds on that property.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyPredicate​(@NotNull java.lang.String name, @NotNull java.util.function.Predicate<org.apache.jackrabbit.oak.api.PropertyState> propertyPredicate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean apply​(org.apache.jackrabbit.oak.spi.state.NodeState node)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use test(NodeState) instead (see OAK-8874)
      boolean test​(org.apache.jackrabbit.oak.spi.state.NodeState node)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • PropertyPredicate

        public PropertyPredicate​(@NotNull
                                 @NotNull java.lang.String name,
                                 @NotNull
                                 @NotNull java.util.function.Predicate<org.apache.jackrabbit.oak.api.PropertyState> propertyPredicate)
        Parameters:
        name - name of the property
        propertyPredicate - predicate on the named property
    • Method Detail

      • test

        public boolean test​(org.apache.jackrabbit.oak.spi.state.NodeState node)
        Specified by:
        test in interface java.util.function.Predicate<org.apache.jackrabbit.oak.spi.state.NodeState>
      • apply

        @Deprecated(since="1.26.0",
                    forRemoval=true)
        public boolean apply​(org.apache.jackrabbit.oak.spi.state.NodeState node)
        Deprecated, for removal: This API element is subject to removal in a future version.
        use test(NodeState) instead (see OAK-8874)
        Specified by:
        apply in interface Predicate<org.apache.jackrabbit.oak.spi.state.NodeState>