- java.lang.Object
-
- java.lang.Enum<SnmpConstants.StorageTypeEnum>
-
- org.snmp4j.mp.SnmpConstants.StorageTypeEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SnmpConstants.StorageTypeEnum>
- Enclosing class:
- SnmpConstants
public static enum SnmpConstants.StorageTypeEnum extends java.lang.Enum<SnmpConstants.StorageTypeEnum>
Enumeration of the textual convention StorageType defined in SNMPv2-TC MIB.- Since:
- 2.5.7
-
-
Enum Constant Summary
Enum Constants Enum Constant Description _volatile
nonVolatile
other
permanent
readOnly
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSmiValue()
Gets the SMI value of the enumeration for setting a StorageType OBJECT-TYPE.static SnmpConstants.StorageTypeEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SnmpConstants.StorageTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
other
public static final SnmpConstants.StorageTypeEnum other
-
_volatile
public static final SnmpConstants.StorageTypeEnum _volatile
-
nonVolatile
public static final SnmpConstants.StorageTypeEnum nonVolatile
-
permanent
public static final SnmpConstants.StorageTypeEnum permanent
-
readOnly
public static final SnmpConstants.StorageTypeEnum readOnly
-
-
Method Detail
-
values
public static SnmpConstants.StorageTypeEnum[] 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 (SnmpConstants.StorageTypeEnum c : SnmpConstants.StorageTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SnmpConstants.StorageTypeEnum 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 namejava.lang.NullPointerException
- if the argument is null
-
getSmiValue
public int getSmiValue()
Gets the SMI value of the enumeration for setting a StorageType OBJECT-TYPE.- Returns:
- the SMI integer representation value.
-
-