Interface CollectionExpression<T extends Collection<E>,E>

Type Parameters:
T - Java type being represented here
E - Element type of the collection being represented here
All Superinterfaces:
Expression<T>
All Known Subinterfaces:
ListExpression<T,E>

public interface CollectionExpression<T extends Collection<E>,E> extends Expression<T>
Representation of a collection in a query.
  • Method Details

    • contains

      BooleanExpression contains(Expression<E> expr)
      Method returning whether the specified element expression is contained in this collection.
      Parameters:
      expr - The element expression
      Returns:
      Whether it is contained here
    • contains

      BooleanExpression contains(E elem)
      Method returning whether the specified element is contained in this collection.
      Parameters:
      elem - The element
      Returns:
      Whether it is contained here
    • isEmpty

      Method returning whether the collection is empty.
      Returns:
      Whether it is empty
    • size

      Method returning an expression for the size of the collection
      Returns:
      The size