Interface FilterableDate<EntityT>

Type Parameters:
EntityT - Type of the entity which references the value.
All Superinterfaces:
EntityReference<EntityT>, Expressions.Operand, FilterableValue<EntityT,LocalDate>
All Known Implementing Classes:
FilterableDate.Expression, SimpleProperty.Date

public interface FilterableDate<EntityT> extends FilterableValue<EntityT,LocalDate>
Fluent helper class to provide filter functions to OData expressions referenced by Date.
  • Method Details

    • dateDay

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

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

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

      @Nonnull default FilterableDate<EntityT> add(@Nonnull FilterableDuration<EntityT> operand)
      Filter by expression "add".
      Parameters:
      operand - The duration to add to the date expression.
      Returns:
      The FluentHelper filter
    • add

      @Nonnull default FilterableDate<EntityT> add(@Nonnull Duration operand)
      Filter by expression "add".
      Parameters:
      operand - The duration to ad to the date expression.
      Returns:
      The FluentHelper filter
    • subtract

      @Nonnull default FilterableDate<EntityT> subtract(@Nonnull FilterableDuration<EntityT> operand)
      Filter by expression "sub".
      Parameters:
      operand - The duration to subtract from the date.
      Returns:
      The FluentHelper filter
    • subtract

      @Nonnull default FilterableDate<EntityT> subtract(@Nonnull Duration operand)
      Filter by expression "sub".
      Parameters:
      operand - The duration to subtract from the date.
      Returns:
      The FluentHelper filter
    • difference

      @Nonnull default FilterableDuration<EntityT> difference(@Nonnull FilterableDate<EntityT> operand)
      Filter by expression "sub".
      Parameters:
      operand - The other date to calculate the difference from.
      Returns:
      The FluentHelper filter
    • difference

      @Nonnull default FilterableDuration<EntityT> difference(@Nonnull LocalDate operand)
      Filter by expression "sub".
      Parameters:
      operand - The other date to calculate the difference from.
      Returns:
      The FluentHelper filter