Enum DistanceUnit

    • Enum Constant Detail

      • MILE

        public static final DistanceUnit MILE
        Mile.
        Since:
        9.0.0
      • YARD

        public static final DistanceUnit YARD
        Yard.
        Since:
        9.0.0
      • FEET

        public static final DistanceUnit FEET
        Feet.
        Since:
        9.0.0
      • INCH

        public static final DistanceUnit INCH
        Inch.
        Since:
        9.0.0
      • KILOMETER

        public static final DistanceUnit KILOMETER
        Kilometer.
        Since:
        9.0.0
      • METER

        public static final DistanceUnit METER
        Meter.
        Since:
        9.0.0
      • CENTIMETER

        public static final DistanceUnit CENTIMETER
        Centimeter.
        Since:
        9.0.0
      • MILLIMETER

        public static final DistanceUnit MILLIMETER
        Millimeter.
        Since:
        9.0.0
      • NAUTICAL_MILE

        public static final DistanceUnit NAUTICAL_MILE
        Nautical mile.
        Since:
        9.0.0
    • Method Detail

      • values

        public static DistanceUnit[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DistanceUnit c : DistanceUnit.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DistanceUnit 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