Interface FilterableValue<EntityT,PrimitiveT extends Serializable>

Type Parameters:
EntityT - Type of the entity which references the value.
PrimitiveT - Type of the value the filterable field holds.
All Superinterfaces:
EntityReference<EntityT>, Expressions.Operand
All Known Subinterfaces:
FilterableBoolean<EntityT>, FilterableDate<EntityT>, FilterableDateTime<EntityT>, FilterableDuration<EntityT>, FilterableGuid<EntityT>, FilterableNumeric<EntityT>, FilterableNumericDecimal<EntityT>, FilterableNumericInteger<EntityT>, FilterableString<EntityT>, FilterableTime<EntityT>
All Known Implementing Classes:
FilterableBoolean.Expression, FilterableDate.Expression, FilterableDateTime.Expression, FilterableDuration.Expression, FilterableNumericDecimal.Expression, FilterableNumericInteger.Expression, FilterableString.Expression, FilterableTime.Expression, SimpleProperty.Boolean, SimpleProperty.Date, SimpleProperty.DateTime, SimpleProperty.Duration, SimpleProperty.Guid, SimpleProperty.NumericDecimal, SimpleProperty.NumericInteger, SimpleProperty.String, SimpleProperty.Time

public interface FilterableValue<EntityT,PrimitiveT extends Serializable> extends Expressions.Operand, EntityReference<EntityT>
Fluent helper class to provide filter functions to OData expressions referenced by all value types.
  • Method Details

    • equalToNull

      @Nonnull default FilterableBoolean<EntityT> equalToNull()
      Filter by expression "eq null".
      Returns:
      The FluentHelper filter.
    • notEqualToNull

      @Nonnull default FilterableBoolean<EntityT> notEqualToNull()
      Filter by expression "ne null".
      Returns:
      The FluentHelper filter.
    • equalTo

      @Nonnull default FilterableBoolean<EntityT> equalTo(@Nonnull FilterableValue<?,?> operand)
      Filter by expression "eq".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
    • equalTo

      @Nonnull default FilterableBoolean<EntityT> equalTo(@Nullable PrimitiveT operand)
      Filter by expression "eq".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
      Throws:
      IllegalArgumentException - When there is no mapping found for the provided Java literal.
    • notEqualTo

      @Nonnull default FilterableBoolean<EntityT> notEqualTo(@Nonnull FilterableValue<?,?> operand)
      Filter by expression "ne".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
    • notEqualTo

      @Nonnull default FilterableBoolean<EntityT> notEqualTo(@Nullable PrimitiveT operand)
      Filter by expression "ne".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
      Throws:
      IllegalArgumentException - When there is no mapping found for the provided Java literal.
    • lessThan

      @Nonnull default FilterableBoolean<EntityT> lessThan(@Nonnull FilterableValue<?,?> operand)
      Filter by expression "lt".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
    • lessThan

      @Nonnull default FilterableBoolean<EntityT> lessThan(@Nonnull PrimitiveT operand)
      Filter by expression "lt".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
      Throws:
      IllegalArgumentException - When there is no mapping found for the provided Java literal.
    • lessThanEqual

      @Nonnull default FilterableBoolean<EntityT> lessThanEqual(@Nonnull FilterableValue<?,?> operand)
      Filter by expression "le".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
    • lessThanEqual

      @Nonnull default FilterableBoolean<EntityT> lessThanEqual(@Nonnull PrimitiveT operand)
      Filter by expression "le".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
      Throws:
      IllegalArgumentException - When there is no mapping found for the provided Java literal.
    • greaterThan

      @Nonnull default FilterableBoolean<EntityT> greaterThan(@Nonnull FilterableValue<?,?> operand)
      Filter by expression "gt".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
    • greaterThan

      @Nonnull default FilterableBoolean<EntityT> greaterThan(@Nonnull PrimitiveT operand)
      Filter by expression "gt".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
      Throws:
      IllegalArgumentException - When there is no mapping found for the provided Java literal.
    • greaterThanEqual

      @Nonnull default FilterableBoolean<EntityT> greaterThanEqual(@Nonnull FilterableValue<?,?> operand)
      Filter by expression "ge".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
    • greaterThanEqual

      @Nonnull default FilterableBoolean<EntityT> greaterThanEqual(@Nonnull PrimitiveT operand)
      Filter by expression "ge".
      Parameters:
      operand - The generic operand to compare with.
      Returns:
      The FluentHelper filter.
      Throws:
      IllegalArgumentException - When there is no mapping found for the provided Java literal.
    • in

      @Nonnull default FilterableBoolean<EntityT> in(@Nonnull PrimitiveT... operands)
      Filter by expression "in".
      Parameters:
      operands - The generic operands to compare with.
      Returns:
      The FluentHelper filter.
      Throws:
      IllegalArgumentException - When there is no mapping found for any of the provided Java literals.
    • in

      @Nonnull default FilterableBoolean<EntityT> in(@Nonnull FilterableCollection<?,PrimitiveT> operand)
      Filter by expression "in".
      Parameters:
      operand - The generic operands to compare with.
      Returns:
      The FluentHelper filter.