Class EnumParser<E extends Enum<E>>

java.lang.Object
ch.njol.skript.config.EnumParser<E>
All Implemented Interfaces:
Converter<String,E>

@Deprecated(since="2.12", forRemoval=true) public class EnumParser<E extends Enum<E>> extends Object implements Converter<String,E>
Deprecated, for removal: This API element is subject to removal in a future version.
Use EnumParser instead.
  • Constructor Details

    • EnumParser

      public EnumParser(Class<E> enumType, String type)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • convert

      @Nullable public E convert(String s)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Converter
      Converts an object using this Converter.
      Specified by:
      convert in interface Converter<String,E extends Enum<E>>
      Parameters:
      s - The object to convert.
      Returns:
      The converted object.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object