- java.lang.Object
-
- java.lang.Enum<StorageType.StorageTypeEnum>
-
- org.snmp4j.agent.mo.snmp.StorageType.StorageTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<StorageType.StorageTypeEnum>
- Enclosing class:
- StorageType
public static enum StorageType.StorageTypeEnum extends Enum<StorageType.StorageTypeEnum>
TheStorageTypeEnum
as a enumerated representastion of the StorageType SMI values.- Since:
- 3.0
- Version:
- 3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description nonVolatile
other
permanent
readOnly
volatile_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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
valueOf(String name)
Returns the enum constant of this type with the specified name.static StorageType.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 StorageType.StorageTypeEnum other
-
volatile_
public static final StorageType.StorageTypeEnum volatile_
-
nonVolatile
public static final StorageType.StorageTypeEnum nonVolatile
-
permanent
public static final StorageType.StorageTypeEnum permanent
-
readOnly
public static final StorageType.StorageTypeEnum readOnly
-
-
Method Detail
-
values
public static StorageType.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 (StorageType.StorageTypeEnum c : StorageType.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 StorageType.StorageTypeEnum valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
public static StorageType.StorageTypeEnum fromValue(int storageTypeValue)
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
-
-