Interface FilterableCollection<EntityT,ItemT>

Type Parameters:
EntityT - Type of the entity which references the value.
ItemT - Type of the item type the collection holds.
All Superinterfaces:
EntityReference<EntityT>, Expressions.Operand, Expressions.OperandMultiple
All Known Implementing Classes:
ComplexProperty.Collection, FilterableCollection.Expression, NavigationProperty.Collection, SimpleProperty.Collection

public interface FilterableCollection<EntityT,ItemT> extends Expressions.OperandMultiple, EntityReference<EntityT>
Fluent helper class to provide filter functions to OData expressions referenced by Collection.
  • Method Details

    • getItemType

      @Nonnull Class<ItemT> getItemType()
      Get the item type the collection holds.
      Returns:
      The item type.
    • hasSubset

      @Nonnull default FilterableBoolean<EntityT> hasSubset(@Nonnull FilterableCollection<?,ItemT> operand)
      Filter by expression "hasSubset".
      Parameters:
      operand - Only operand of collection type.
      Returns:
      The FluentHelper filter.
    • hasSubset

      @Nonnull default FilterableBoolean<EntityT> hasSubset(@Nonnull Iterable<ItemT> operand)
      Filter by expression "hasSubset".
      Parameters:
      operand - Only operand of Java iterable.
      Returns:
      The FluentHelper filter.
    • hasSubSequence

      @Nonnull default FilterableBoolean<EntityT> hasSubSequence(@Nonnull FilterableCollection<?,ItemT> operand)
      Filter by expression "hasSubSequence".
      Parameters:
      operand - Only operand of collection type.
      Returns:
      The FluentHelper filter.
    • hasSubSequence

      @Nonnull default FilterableBoolean<EntityT> hasSubSequence(@Nonnull Iterable<ItemT> operand)
      Filter by expression "hasSubSequence".
      Parameters:
      operand - Only operand of Java iterable.
      Returns:
      The FluentHelper filter.
    • contains

      @Nonnull default FilterableBoolean<EntityT> contains(@Nonnull FilterableCollection<?,ItemT> operand)
      Filter by expression "contains".
      Parameters:
      operand - Only operand of collection type.
      Returns:
      The FluentHelper filter.
    • contains

      @Nonnull default FilterableBoolean<EntityT> contains(@Nonnull Iterable<ItemT> operand)
      Filter by expression "contains".
      Parameters:
      operand - Only operand of Java iterable.
      Returns:
      The FluentHelper filter.
    • startsWith

      @Nonnull default FilterableBoolean<EntityT> startsWith(@Nonnull FilterableCollection<?,ItemT> operand)
      Filter by expression "startsWith".
      Parameters:
      operand - Only operand of collection type.
      Returns:
      The FluentHelper filter.
    • startsWith

      @Nonnull default FilterableBoolean<EntityT> startsWith(@Nonnull Iterable<ItemT> operand)
      Filter by expression "startsWith".
      Parameters:
      operand - Only operand of Java iterable.
      Returns:
      The FluentHelper filter.
    • endsWith

      @Nonnull default FilterableBoolean<EntityT> endsWith(@Nonnull FilterableCollection<?,ItemT> operand)
      Filter by expression "endsWith".
      Parameters:
      operand - Only operand of collection type.
      Returns:
      The FluentHelper filter.
    • endsWith

      @Nonnull default FilterableBoolean<EntityT> endsWith(@Nonnull Iterable<ItemT> operand)
      Filter by expression "endsWith".
      Parameters:
      operand - Only operand of Java iterable.
      Returns:
      The FluentHelper filter.
    • indexOf

      @Nonnull default FilterableNumericInteger<EntityT> indexOf(@Nonnull FilterableCollection<?,ItemT> operand)
      Filter by expression "indexOf".
      Parameters:
      operand - Only operand of collection type.
      Returns:
      The FluentHelper filter.
    • indexOf

      @Nonnull default FilterableNumericInteger<EntityT> indexOf(@Nonnull Iterable<ItemT> operand)
      Filter by expression "indexOf".
      Parameters:
      operand - Only operand of Java iterable.
      Returns:
      The FluentHelper filter.
    • concat

      @Nonnull default FilterableCollection<EntityT,ItemT> concat(@Nonnull FilterableCollection<?,ItemT> operand)
      Filter by expression "concat".
      Parameters:
      operand - Only operand of collection type.
      Returns:
      The FluentHelper filter.
    • concat

      @Nonnull default FilterableCollection<EntityT,ItemT> concat(@Nonnull Iterable<ItemT> operand)
      Filter by expression "concat".
      Parameters:
      operand - Only operand of Java iterable.
      Returns:
      The FluentHelper filter.
    • length

      @Nonnull default FilterableNumericInteger<EntityT> length()
      Filter by expression "length".
      Returns:
      The FluentHelper filter.
    • substring

      @Nonnull default FilterableCollection<EntityT,ItemT> substring(@Nonnull Integer operand)
      Filter by expression "substring".
      Parameters:
      operand - Only operand of Integer type.
      Returns:
      The FluentHelper filter.
    • substring

      @Nonnull default FilterableCollection<EntityT,ItemT> substring(@Nonnull Integer operandIndex, @Nonnull Integer operandLength)
      Filter by expression "substring".
      Parameters:
      operandIndex - Operand of Integer type to mark the start of the subset.
      operandLength - Operand of Integer type to mark the size of the subset.
      Returns:
      The FluentHelper filter.
    • all

      @Nonnull default FilterableBoolean<EntityT> all(@Nonnull FilterableBoolean<ItemT> operand)
      Filter by lambda expression "all".
      Parameters:
      operand - Operand to provide a generic filter to the collection item.
      Returns:
      The FluentHelper filter.
    • any

      @Nonnull default FilterableBoolean<EntityT> any(@Nonnull FilterableBoolean<ItemT> operand)
      Filter by lambda expression "any".
      Parameters:
      operand - Operand to provide a generic filter to the collection item.
      Returns:
      The FluentHelper filter.