Enum AttributeUnit

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AttributeUnit>

    public enum AttributeUnit
    extends java.lang.Enum<AttributeUnit>
    Defines the units in which the cost values are measured.
    Since:
    100.0.0
    See Also:
    CostAttribute.getUnit()
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AttributeUnit valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AttributeUnit[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UNKNOWN

        public static final AttributeUnit UNKNOWN
        An unknown unit.
        Since:
        100.0.0
      • INCHES

        public static final AttributeUnit INCHES
        A inches attribute unit.
        Since:
        100.10.0
      • FEET

        public static final AttributeUnit FEET
        A feet attribute unit.
        Since:
        100.0.0
      • YARDS

        public static final AttributeUnit YARDS
        A yards attribute unit.
        Since:
        100.10.0
      • MILES

        public static final AttributeUnit MILES
        A miles attribute unit.
        Since:
        100.0.0
      • MILLIMETERS

        public static final AttributeUnit MILLIMETERS
        A millimeters attribute unit.
        Since:
        100.10.0
      • CENTIMETERS

        public static final AttributeUnit CENTIMETERS
        A centimeters attribute unit.
        Since:
        100.10.0
      • DECIMETERS

        public static final AttributeUnit DECIMETERS
        A decimeters attribute unit.
        Since:
        100.10.0
      • METERS

        public static final AttributeUnit METERS
        A meters attribute unit.
        Since:
        100.0.0
      • KILOMETERS

        public static final AttributeUnit KILOMETERS
        A kilometers attribute unit.
        Since:
        100.0.0
      • NAUTICAL_MILES

        public static final AttributeUnit NAUTICAL_MILES
        A nautical miles attribute unit.
        Since:
        100.0.0
      • DECIMAL_DEGREES

        public static final AttributeUnit DECIMAL_DEGREES
        A decimal degrees attribute unit.
        Since:
        100.0.0
      • SECONDS

        public static final AttributeUnit SECONDS
        A seconds attribute unit.
        Since:
        100.10.0
      • MINUTES

        public static final AttributeUnit MINUTES
        A minutes attribute unit.
        Since:
        100.0.0
      • HOURS

        public static final AttributeUnit HOURS
        An hours attribute unit.
        Since:
        100.10.0
      • DAYS

        public static final AttributeUnit DAYS
        A days attribute unit.
        Since:
        100.10.0
    • Method Detail

      • values

        public static AttributeUnit[] 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 (AttributeUnit c : AttributeUnit.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AttributeUnit valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null