Enum DataStructureType

    • Method Detail

      • values

        public static DataStructureType[] 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 (DataStructureType c : DataStructureType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataStructureType 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
      • className

        public String className()
        Returns:
        Data structure public class name.
      • isVolatile

        public boolean isVolatile()
        Returns:
        True if this data structure type is volatile.
      • isCollection

        public boolean isCollection()
        Returns:
        True if this data structure type is collection.
      • fromOrdinal

        @Nullable
        public static @Nullable DataStructureType fromOrdinal​(int ord)
        Parameters:
        ord - Ordinal value.
        Returns:
        Enumerated value or null if ordinal out of range.