Package functions

Enum Class H3Unit

All Implemented Interfaces:
Serializable, Comparable<H3Unit>, Constable

public enum H3Unit extends Enum<H3Unit>
H3Unit as th3index_internal.h declares it.
  • Enum Constant Details

    • H3_UNIT_KM

      public static final H3Unit H3_UNIT_KM
    • H3_UNIT_M

      public static final H3Unit H3_UNIT_M
    • H3_UNIT_RADS

      public static final H3Unit H3_UNIT_RADS
    • H3_UNIT_KM2

      public static final H3Unit H3_UNIT_KM2
    • H3_UNIT_M2

      public static final H3Unit H3_UNIT_M2
    • H3_UNIT_RADS2

      public static final H3Unit H3_UNIT_RADS2
  • Field Details

    • value

      private final int value
  • Constructor Details

    • H3Unit

      private H3Unit(int value)
  • Method Details

    • values

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

      public static H3Unit valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      The value MEOS gives this constant.