Skip to content

Interface NumericExpr

Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.

All Superinterfaces:
Expr
All Known Subinterfaces:
DynExpr, FloatExpr, IntegralExpr, IntExpr, NumExpr
All Known Implementing Classes:
DynField, FloatField, IntField, NumField
public sealed interface NumericExpr extends Expr permits IntegralExpr, FloatExpr, NumExpr
An expression that comparisons take: an integer, a float, a num or a dynamic value.
  • Method Details

    • neg

      Returns -this.
      Returns:
      -this
    • lt

      default IntExpr lt(NumericExpr other)
      Returns this < other.
      Parameters:
      other - the right operand
      Returns:
      this < other
    • lt

      default IntExpr lt(long other)
      Returns this < other.
      Parameters:
      other - the right operand
      Returns:
      this < other
    • lt

      default IntExpr lt(double other)
      Returns this < other.
      Parameters:
      other - the right operand
      Returns:
      this < other
    • le

      default IntExpr le(NumericExpr other)
      Returns this <= other.
      Parameters:
      other - the right operand
      Returns:
      this <= other
    • le

      default IntExpr le(long other)
      Returns this <= other.
      Parameters:
      other - the right operand
      Returns:
      this <= other
    • le

      default IntExpr le(double other)
      Returns this <= other.
      Parameters:
      other - the right operand
      Returns:
      this <= other
    • gt

      default IntExpr gt(NumericExpr other)
      Returns this > other.
      Parameters:
      other - the right operand
      Returns:
      this > other
    • gt

      default IntExpr gt(long other)
      Returns this > other.
      Parameters:
      other - the right operand
      Returns:
      this > other
    • gt

      default IntExpr gt(double other)
      Returns this > other.
      Parameters:
      other - the right operand
      Returns:
      this > other
    • ge

      default IntExpr ge(NumericExpr other)
      Returns this >= other.
      Parameters:
      other - the right operand
      Returns:
      this >= other
    • ge

      default IntExpr ge(long other)
      Returns this >= other.
      Parameters:
      other - the right operand
      Returns:
      this >= other
    • ge

      default IntExpr ge(double other)
      Returns this >= other.
      Parameters:
      other - the right operand
      Returns:
      this >= other
    • eq

      default IntExpr eq(NumericExpr other)
      Returns this == other.
      Parameters:
      other - the right operand
      Returns:
      this == other
    • eq

      default IntExpr eq(long other)
      Returns this == other.
      Parameters:
      other - the right operand
      Returns:
      this == other
    • eq

      default IntExpr eq(double other)
      Returns this == other.
      Parameters:
      other - the right operand
      Returns:
      this == other
    • ne

      default IntExpr ne(NumericExpr other)
      Returns this != other.
      Parameters:
      other - the right operand
      Returns:
      this != other
    • ne

      default IntExpr ne(long other)
      Returns this != other.
      Parameters:
      other - the right operand
      Returns:
      this != other
    • ne

      default IntExpr ne(double other)
      Returns this != other.
      Parameters:
      other - the right operand
      Returns:
      this != other