Class Predicates


  • @API(status=EXPERIMENTAL,
         since="1.0")
    public final class Predicates
    extends java.lang.Object
    Factory methods for creating predicates.
    Since:
    1.0
    Author:
    Michael J. Simons
    • Method Detail

      • exists

        public static Condition exists​(Property property)
        Creates a new condition based on a function invocation for the exists() function. See exists.
        Parameters:
        property - The property to be passed to exists()
        Returns:
        A function call for exists() for one property
      • exists

        public static Condition exists​(RelationshipPattern pattern)
        Creates a new condition based on a function invocation for the exists() function. See exists.
        Parameters:
        pattern - The pattern to be passed to exists()
        Returns:
        A function call for exists() for one pattern
      • all

        public static Predicates.OngoingListBasedPredicateFunction all​(SymbolicName variable)
        Starts building a new condition based on a function invocation for the all() function. See exists.
        Parameters:
        variable - The variable referring to elements of a list
        Returns:
        A builder for the all() predicate function
        Since:
        1.1
      • any

        public static Predicates.OngoingListBasedPredicateFunction any​(SymbolicName variable)
        Starts building a new condition based on a function invocation for the any() function. See exists.
        Parameters:
        variable - The variable referring to elements of a list
        Returns:
        A builder for the any() predicate function
        Since:
        1.1
      • none

        public static Predicates.OngoingListBasedPredicateFunction none​(SymbolicName variable)
        Starts building a new condition based on a function invocation for the none() function. See exists.
        Parameters:
        variable - The variable referring to elements of a list
        Returns:
        A builder for the none() predicate function
        Since:
        1.1
      • single

        public static Predicates.OngoingListBasedPredicateFunction single​(SymbolicName variable)
        Starts building a new condition based on a function invocation for the single() function. See exists.
        Parameters:
        variable - The variable referring to elements of a list
        Returns:
        A builder for the single() predicate function
        Since:
        1.1