Package org.jparsec

Enum IntOrder

All Implemented Interfaces:
Serializable, Comparable<IntOrder>, java.lang.constant.Constable

enum IntOrder extends Enum<IntOrder>
Maps two integers to a boolean value.
  • Enum Constant Details

    • LT

      public static final IntOrder LT
      An IntOrder instance that determines if the first integer is less than the second one.

      LT.compare(1, 2) == true.

    • GT

      public static final IntOrder GT
      An IntOrder instance that determines if the first integer is smaller than the second one.

      GT.compare(2, 1) == true.

  • Constructor Details

    • IntOrder

      private IntOrder()
  • Method Details

    • values

      public static IntOrder[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IntOrder valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • compare

      abstract boolean compare(int a, int b)
      Compares two integers.
      Parameters:
      a - 1st int
      b - 2nd int
      Returns:
      the comparison result.