Class ComparisonOperators

java.lang.Object
com.hypixel.hytale.server.core.util.ComparisonOperators

public final class ComparisonOperators extends Object
Shared evaluation and codec for ComparisonOperator.
  • Field Details

  • Method Details

    • compare

      public static boolean compare(@Nonnull ComparisonOperator operator, long lhs, long rhs)
      Apply operator with lhs as the left-hand operand and rhs as the right-hand operand: lhs < rhs for ComparisonOperator.LessThan, and so on.
    • compare

      public static boolean compare(@Nonnull ComparisonOperator operator, double lhs, double rhs)
      Apply operator with lhs as the left-hand operand and rhs as the right-hand operand: lhs < rhs for ComparisonOperator.LessThan, and so on.