Class RuntimeComparison

java.lang.Object
io.github.protasm.jvmud.compiler.runtime.RuntimeComparison

public final class RuntimeComparison extends Object
Runtime comparison helpers for LPC mixed/string/numeric relational operators.
  • Method Details

    • greaterThan

      public static boolean greaterThan(Object left, Object right)
      Returns whether left is greater than right using LPC-compatible ordering.
    • greaterThanOrEqual

      public static boolean greaterThanOrEqual(Object left, Object right)
      Returns whether left is greater than or equal to right using LPC-compatible ordering.
    • lessThan

      public static boolean lessThan(Object left, Object right)
      Returns whether left is less than right using LPC-compatible ordering.
    • lessThanOrEqual

      public static boolean lessThanOrEqual(Object left, Object right)
      Returns whether left is less than or equal to right using LPC-compatible ordering.