Enum StorageType.StorageTypeEnum

    • 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 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