Enum Unit

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

    public enum Unit
    extends java.lang.Enum<Unit>
    • Enum Constant Detail

      • degree

        public static final Unit degree
      • deg

        public static final Unit deg
      • GHz

        public static final Unit GHz
      • MHz

        public static final Unit MHz
      • KHz

        public static final Unit KHz
      • Hz

        public static final Unit Hz
      • dBm

        public static final Unit dBm
      • dB

        public static final Unit dB
      • dBi

        public static final Unit dBi
      • dBc

        public static final Unit dBc
      • w

        public static final Unit w
      • watt

        public static final Unit watt
      • users

        public static final Unit users
      • kbps

        public static final Unit kbps
      • percent

        public static final Unit percent
      • count

        public static final Unit count
      • none

        public static final Unit none
      • km

        public static final Unit km
      • m

        public static final Unit m
      • second

        public static final Unit second
      • s

        public static final Unit s
      • eventsPerSecond

        public static final Unit eventsPerSecond
      • processor

        public static final Unit processor
      • event

        public static final Unit event
      • ratio

        public static final Unit ratio
      • point

        public static final Unit point
      • speed

        public static final Unit speed
      • probability

        public static final Unit probability
    • Method Detail

      • values

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

        public static Unit 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
      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Unit>
      • parse

        public static Unit parse​(java.lang.String unit)