Class EnumerationDescription.ForLoadedEnumeration

    • Constructor Detail

      • ForLoadedEnumeration

        public ForLoadedEnumeration​(Enum<?> value)
        Creates a new enumeration value representation for a loaded enumeration.
        Parameters:
        value - The value to represent.
    • Method Detail

      • asList

        public static List<EnumerationDescription> asList​(Enum<?>[] enumerations)
        Enlists a given array of loaded enumerations as enumeration values.
        Parameters:
        enumerations - The enumerations to represent.
        Returns:
        A list of the given enumerations.
      • getValue

        public String getValue()
        Returns the name of this instance's enumeration value.
        Returns:
        The name of this enumeration constant.
      • getEnumerationType

        public TypeDescription getEnumerationType()
        Returns the type of this enumeration.
        Returns:
        The type of this enumeration.
      • load

        public <T extends Enum<T>> T load​(Class<T> type)
        Prepares this enumeration value to be loaded.
        Type Parameters:
        T - The enumeration type.
        Parameters:
        type - A type constant representing the enumeration value.
        Returns:
        The loaded enumeration constant corresponding to this value.