Interface PluralExpression<C,E>

All Superinterfaces:
Expression<C>, Selection<C>, TupleElement<C>

public interface PluralExpression<C,E> extends Expression<C>
Type for collection query expressions.
Since:
4.0
  • Method Details

    • isEmpty

      Predicate isEmpty()
      Create a predicate that tests whether this collection is empty.
      Returns:
      is-empty predicate
      See Also:
    • isNotEmpty

      Predicate isNotEmpty()
      Create a predicate that tests whether this collection is not empty.
      Returns:
      is-not-empty predicate
      See Also:
    • size

      Create an expression that tests the size of this collection.
      Returns:
      size expression
      See Also:
    • contains

      Predicate contains(Expression<? extends E> elem)
      Create a predicate that tests whether an element is a member of this collection. If the collection is empty, the predicate will be false.
      Parameters:
      elem - element expression
      Returns:
      is-member predicate
    • contains

      Predicate contains(E elem)
      Create a predicate that tests whether an element is a member of this collection. If the collection is empty, the predicate will be false.
      Parameters:
      elem - element
      Returns:
      is-member predicate
    • notContains

      Predicate notContains(Expression<? extends E> elem)
      Create a predicate that tests whether an element is not a member of this collection. If the collection is empty, the predicate will be true.
      Parameters:
      elem - element expression
      Returns:
      is-not-member predicate
    • notContains

      Predicate notContains(E elem)
      Create a predicate that tests whether an element is not a member of this collection. If the collection is empty, the predicate will be true.
      Parameters:
      elem - element
      Returns:
      is-not-member predicate