接口 ComparableExpression<T extends Comparable<?>>

所有超级接口:
Expression<T>, Selection<T>
所有已知子接口:
NumericExpression<N>, PropExpression.Cmp<T>, PropExpression.Num<N>, PropExpression.Str, StringExpression

public interface ComparableExpression<T extends Comparable<?>> extends Expression<T>
  • 方法详细资料

    • lt

      @NotNull @NotNull Predicate lt(@NotNull @NotNull Expression<T> other)
      Create `less than` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `less than` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • lt

      @NotNull @NotNull Predicate lt(@NotNull T other)
      Create `less than` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `less than` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • ltIf

      @Nullable default @Nullable Predicate ltIf(boolean condition, @Nullable T other)
      Create `less than` predicate when certain conditions are met.
      参数:
      condition - If this argument is true and the other is neither null nor empty string, creates predicate; otherwise, returns null
      other - The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check if condition is true to decide whether to create predicate
      返回:
      `less than` predicate or null
    • ltIf

      @Nullable default @Nullable Predicate ltIf(@Nullable T other)
      Create `less than` predicate when certain conditions are met.
      参数:
      other - The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate
      返回:
      `less than` predicate or null
    • le

      @NotNull @NotNull Predicate le(@NotNull @NotNull Expression<T> other)
      Create `less than or equal to` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `less than or equal to` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • le

      @NotNull @NotNull Predicate le(T other)
      Create `less than or equal to` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `less than or equal to` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • leIf

      @Nullable default @Nullable Predicate leIf(boolean condition, @Nullable T other)
      Create `less than or equal to` predicate when certain conditions are met.
      参数:
      condition - If this argument is true and the other is neither null nor empty string, creates predicate; otherwise, returns null
      other - The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check if condition is true to decide whether to create predicate
      返回:
      `less than or equal to` predicate or null
    • leIf

      @Nullable default @Nullable Predicate leIf(@Nullable T other)
      Create `less than or equal to` predicate when certain conditions are met.
      参数:
      other - The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate
      返回:
      `less than or equal to` predicate or null
    • gt

      @NotNull @NotNull Predicate gt(Expression<T> other)
      Create `greater than` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `greater than` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • gt

      @NotNull @NotNull Predicate gt(T other)
      Create `greater than` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `greater than` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • gtIf

      @Nullable default @Nullable Predicate gtIf(boolean condition, @Nullable T other)
      Create `greater than` predicate when certain conditions are met.
      参数:
      condition - If this argument is true and the other is neither null nor empty string, creates predicate; otherwise, returns null
      other - The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check if condition is true to decide whether to create predicate
      返回:
      `greater than` predicate or null
    • gtIf

      @Nullable default @Nullable Predicate gtIf(@Nullable T other)
      Create `greater than` predicate when certain conditions are met.
      参数:
      other - The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate
      返回:
      `greater than` predicate or null
    • ge

      @NotNull @NotNull Predicate ge(Expression<T> other)
      Create `greater than or equal to` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `greater than or equal to` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • ge

      @NotNull @NotNull Predicate ge(T other)
      Create `greater than or equal to` predicate
      参数:
      other - The right operand which cannot be null
      返回:
      `greater than or equal to` predicate
      抛出:
      IllegalArgumentException - The argument other is null
    • geIf

      @Nullable default @Nullable Predicate geIf(boolean condition, @Nullable T other)
      Create `greater than or equal to` predicate when certain conditions are met.
      参数:
      condition - If this argument is true and the other is neither null nor empty string, creates predicate; otherwise, returns null
      other - The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check if condition is true to decide whether to create predicate
      返回:
      `greater than or equal to` predicate or null
    • geIf

      @Nullable default @Nullable Predicate geIf(@Nullable T other)
      Create `greater than or equal to` predicate when certain conditions are met.
      参数:
      other - The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate
      返回:
      `greater than or equal to` predicate or null
    • between

      @NotNull @NotNull Predicate between(Expression<T> min, Expression<T> max)
      Create `between` predicate
      参数:
      min - The min bound which cannot be null
      max - The max bound which cannot be null
      返回:
      `between` predicate
      抛出:
      IllegalArgumentException - The argument min or max is null
    • between

      @NotNull @NotNull Predicate between(T min, T max)
      Create `between` predicate
      参数:
      min - The min bound which cannot be null
      max - The max bound which cannot be null
      返回:
      `between` predicate
      抛出:
      IllegalArgumentException - The argument min or max is null
    • betweenIf

      @Nullable default @Nullable Predicate betweenIf(boolean condition, @Nullable T min, @Nullable T max)
      Create `between`, `less than or equal to` or `greater than or equal to` predicate when certain conditions are met.
      • If condition is false, returns null directly
      • If condition is true and both min and max are null or empty string, returns null directly
      • If condition is true and only min is null or empty string, returns le(max)
      • If condition is true and only max is null or empty string, returns ge(min)
      • If condition is true and none of min and max is null or empty string, creates `between` predicate
      参数:
      min - The min bound which can be null
      max - The max bound which can be null
      返回:
      null, `between`, `less than or equal to` or `greater than or equal to` predicate
    • betweenIf

      @Nullable default @Nullable Predicate betweenIf(@Nullable T min, @Nullable T max)
      Create `between`, `less than or equal to` or `greater than or equal to` predicate when certain conditions are met.
      • If both min and max are null or empty string, returns null directly
      • If only min is null or empty string, returns le(max)
      • If only max is null or empty string, returns ge(min)
      • If none of min and max is null or empty string, create `between` predicate
      参数:
      min - The min bound which can be null
      max - The max bound which can be null
      返回:
      null, `between`, `less than or equal to` or `greater than or equal to` predicate
    • notBetween

      @NotNull @NotNull Predicate notBetween(Expression<T> min, Expression<T> max)
      Create `not between` predicate
      参数:
      min - The min bound which cannot be null
      max - The max bound which cannot be null
      返回:
      `not between` predicate
      抛出:
      IllegalArgumentException - The argument min or max is null
    • notBetween

      @NotNull @NotNull Predicate notBetween(T min, T max)
      Create `not between` predicate
      参数:
      min - The min bound which cannot be null
      max - The max bound which cannot be null
      返回:
      `not between` predicate
      抛出:
      IllegalArgumentException - The argument min or max is null
    • notBetweenIf

      @Nullable default @Nullable Predicate notBetweenIf(boolean condition, @Nullable T min, @Nullable T max)
      Create `not between`, `greater than` or `less than` predicate when certain conditions are met.
      • If condition is false, returns null directly
      • If condition is true and both min and max are null or empty string, returns null directly
      • If condition is true and only min is null or empty string, returns gt(max)
      • If condition is true and only max is null or empty string, returns lt(min)
      • If condition is true and none of min and max is null or empty string, creates `not between` predicate
      参数:
      min - The min bound which can be null
      max - The max bound which can be null
      返回:
      null, `between`, `greater than` or `less than` predicate
    • notBetweenIf

      @Nullable default @Nullable Predicate notBetweenIf(@Nullable T min, @Nullable T max)
      Create `not between`, `greater than` or `less than` predicate when certain conditions are met.
      • If both min and max are null or empty string, returns null directly
      • If only min is null or empty string, returns gt(max)
      • If only max is null or empty string, returns lt(min)
      • If none of min and max is null or empty string, creates `not between` predicate
      参数:
      min - The min bound which can be null
      max - The max bound which can be null
      返回:
      null, `between`, `greater than` or `less than` predicate
    • coalesce

      @NotNull @NotNull ComparableExpression<T> coalesce(T defaultValue)
      指定者:
      coalesce 在接口中 Expression<T extends Comparable<?>>
    • coalesce

      @NotNull @NotNull ComparableExpression<T> coalesce(Expression<T> defaultExpr)
      指定者:
      coalesce 在接口中 Expression<T extends Comparable<?>>
    • coalesceBuilder

      @NotNull @NotNull CoalesceBuilder.Cmp<T> coalesceBuilder()
      指定者:
      coalesceBuilder 在接口中 Expression<T extends Comparable<?>>