Enum AlarmSeverity

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

    public enum AlarmSeverity
    extends java.lang.Enum<AlarmSeverity>
    • Method Detail

      • values

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

        public static AlarmSeverity 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
      • getId

        public int getId()
      • getLabel

        public java.lang.String getLabel()
      • isLessThan

        public boolean isLessThan​(AlarmSeverity other)

        isLessThan

        Parameters:
        other - a org.opennms.netmgt.model.AlarmSeverity object.
        Returns:
        a boolean.
      • isLessThanOrEqual

        public boolean isLessThanOrEqual​(AlarmSeverity other)

        isLessThanOrEqual

        Parameters:
        other - a org.opennms.netmgt.model.AlarmSeverity object.
        Returns:
        a boolean.
      • isGreaterThan

        public boolean isGreaterThan​(AlarmSeverity other)

        isGreaterThan

        Parameters:
        other - a org.opennms.netmgt.model.AlarmSeverity object.
        Returns:
        a boolean.
      • isGreaterThanOrEqual

        public boolean isGreaterThanOrEqual​(AlarmSeverity other)

        isGreaterThanOrEqual

        Parameters:
        other - a org.opennms.netmgt.model.AlarmSeverity object.
        Returns:
        a boolean.
      • get

        public static AlarmSeverity get​(int id)

        get

        Parameters:
        id - a int.
        Returns:
        a org.opennms.netmgt.model.AlarmSeverity object.
      • get

        public static AlarmSeverity get​(java.lang.String label)

        get

        Parameters:
        label - a String object.
        Returns:
        a org.opennms.netmgt.model.AlarmSeverity object.
      • labels

        public static java.util.List<java.lang.String> labels()