- All Implemented Interfaces:
Serializable
,Comparable<StorageType.StorageTypeEnum>
,java.lang.constant.Constable
- Enclosing class:
StorageType
The
StorageTypeEnum
as a enumerated representastion of the StorageType SMI values.- Since:
- 3.0
- Version:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StorageType.StorageTypeEnum
fromValue
(int storageTypeValue) Creates a StorageTypeEnum from its SMI value integer representation.int
getValue()
Gets the SMI representation (integer value) of this storage type.static org.snmp4j.mp.SnmpConstants.StorageTypeEnum
toSnmpConstantsStorageTypeEnum
(int storageTypeValue) Creates aSnmpConstants.StorageTypeEnum
from its SMI value integer representation.static StorageType.StorageTypeEnum
Returns the enum constant of this class with the specified name.static StorageType.StorageTypeEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
other
-
volatile_
-
nonVolatile
-
permanent
-
readOnly
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
Creates a StorageTypeEnum from its SMI value integer representation.- Parameters:
storageTypeValue
- a storage type value from 1 to 5.- Returns:
- the enum representation or
null
if thestorageTypeValue
integer does not represent a valid storage type.
-
toSnmpConstantsStorageTypeEnum
public static org.snmp4j.mp.SnmpConstants.StorageTypeEnum toSnmpConstantsStorageTypeEnum(int storageTypeValue) Creates aSnmpConstants.StorageTypeEnum
from its SMI value integer representation.- Parameters:
storageTypeValue
- a storage type value from 1 to 5.- Returns:
- the enum representation or
null
if thestorageTypeValue
integer does not represent a valid storage type. - Since:
- 3.3.0
-
getValue
public int getValue()Gets the SMI representation (integer value) of this storage type.- Returns:
StorageTypeEnum.ordinal() + 1
-