Class CollectionExpressionBase<T extends Collection<E>,E>

java.lang.Object
com.querydsl.core.types.dsl.DslExpression<T>
com.querydsl.core.types.dsl.CollectionExpressionBase<T,E>
Type Parameters:
T - expression type
E - collection element type
All Implemented Interfaces:
CollectionExpression<T,E>, Expression<T>, ParameterizedExpression<T>, Serializable
Direct Known Subclasses:
CollectionOperation, CollectionPathBase

public abstract class CollectionExpressionBase<T extends Collection<E>,E> extends DslExpression<T> implements CollectionExpression<T,E>
CollectionExpressionBase is an abstract base class for CollectionExpression implementations
Author:
tiwe
See Also:
  • Constructor Details

    • CollectionExpressionBase

      public CollectionExpressionBase(Expression<T> mixin)
  • Method Details

    • as

      public DslExpression<E> as(EntityPath<E> alias)
    • contains

      public final BooleanExpression contains(E child)
      Create a this.contains(child) expression

      Evaluates to true, if child is contained in this

      Parameters:
      child - element to check
      Returns:
      this.contains(child)
    • contains

      public final BooleanExpression contains(Expression<E> child)
      Create a this.contains(child) expression

      Evaluates to true, if child is contained in this

      Parameters:
      child - element to check
      Returns:
      this.contains(child)
    • getElementType

      public abstract Class<E> getElementType()
      Get the element type
      Returns:
      element type
    • isEmpty

      public final BooleanExpression isEmpty()
      Create a this.isEmpty() expression

      Evaluates to true, if this has no elements.

      Returns:
      this.isEmpty()
    • isNotEmpty

      public final BooleanExpression isNotEmpty()
      Create a !this.isEmpty() expression

      Evaluates to true, if this has elements

      Returns:
      !this.isEmpty()
    • size

      public final NumberExpression<Integer> size()
      Create a this.size() expression

      Gets the number of elements in this collection

      Returns:
      this.size()