Class PropertyPredicate

    • Constructor Detail

      • PropertyPredicate

        public PropertyPredicate​(@NotNull
                                 @NotNull String name,
                                 @NotNull Predicate<PropertyState> propertyPredicate)
        name - name of the property
        propertyPredicate - predicate on the named property
    • Method Detail

      • apply

        public boolean apply​(NodeState node)
        use test(NodeState) instead (see OAK-8874)
        Description copied from interface: Predicate
        Returns the result of applying this predicate to input. 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 that predicate.apply(a) == predicate.apply(b)).
        Specified by:
        apply in interface Predicate<NodeState>