java.io.Serializable
, java.lang.Comparable<StorageType.StorageTypeEnum>
public static enum StorageType.StorageTypeEnum extends java.lang.Enum<StorageType.StorageTypeEnum>
StorageTypeEnum
as a enumerated representastion of the StorageType SMI values.Enum Constant | Description |
---|---|
nonVolatile |
|
other |
|
permanent |
|
readOnly |
|
volatile_ |
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 StorageType.StorageTypeEnum |
valueOf(java.lang.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.
|
public static final StorageType.StorageTypeEnum other
public static final StorageType.StorageTypeEnum volatile_
public static final StorageType.StorageTypeEnum nonVolatile
public static final StorageType.StorageTypeEnum permanent
public static final StorageType.StorageTypeEnum readOnly
public static StorageType.StorageTypeEnum[] values()
for (StorageType.StorageTypeEnum c : StorageType.StorageTypeEnum.values()) System.out.println(c);
public static StorageType.StorageTypeEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static StorageType.StorageTypeEnum fromValue(int storageTypeValue)
storageTypeValue
- a storage type value from 1 to 5.null
if the storageTypeValue
integer does not represent a valid
storage type.public int getValue()
StorageTypeEnum.ordinal() + 1
Copyright © 2018 SNMP4J.org. All rights reserved.