Interface PluralExpression<C,E>

Type Parameters:
C - the collection type
E - the element type of the collection
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

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

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

      @Nonnull NumericExpression<Integer> size()
      Create an expression that tests the size of this collection.
      Returns:
      size expression
      See Also:
    • contains

      @Nonnull Predicate contains(@Nonnull 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

      @Nonnull Predicate contains(@Nonnull 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

      @Nonnull Predicate notContains(@Nonnull 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

      @Nonnull Predicate notContains(@Nonnull 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