Enum StorageType.StorageTypeEnum

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<StorageType.StorageTypeEnum>
    Enclosing class:
    StorageType

    public static enum StorageType.StorageTypeEnum
    extends java.lang.Enum<StorageType.StorageTypeEnum>
    The StorageTypeEnum as a enumerated representastion of the StorageType SMI values.
    Since:
    3.0
    Version:
    3.0
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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.
      • getValue

        public int getValue()
        Gets the SMI representation (integer value) of this storage type.
        Returns:
        StorageTypeEnum.ordinal() + 1