Enum Class StorageType.StorageTypeEnum

java.lang.Object
java.lang.Enum<StorageType.StorageTypeEnum>
org.snmp4j.agent.mo.snmp.StorageType.StorageTypeEnum
All Implemented Interfaces:
Serializable, Comparable<StorageType.StorageTypeEnum>, java.lang.constant.Constable
Enclosing class:
StorageType

public static enum StorageType.StorageTypeEnum extends Enum<StorageType.StorageTypeEnum>
The StorageTypeEnum as a enumerated representastion of the StorageType SMI values.
Since:
3.0
Version:
3.0
  • Enum Constant Details

  • Method Details

    • values

      public static StorageType.StorageTypeEnum[] 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

      public static StorageType.StorageTypeEnum valueOf(String name)
      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 name
      NullPointerException - 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 the storageTypeValue integer does not represent a valid storage type.
    • toSnmpConstantsStorageTypeEnum

      public static org.snmp4j.mp.SnmpConstants.StorageTypeEnum toSnmpConstantsStorageTypeEnum(int storageTypeValue)
      Creates a SnmpConstants.StorageTypeEnum from its SMI value integer representation.
      Parameters:
      storageTypeValue - a storage type value from 1 to 5.
      Returns:
      the enum representation or null if the storageTypeValue 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