Enum Class ConversionType

java.lang.Object
java.lang.Enum<ConversionType>
redempt.redlib.configmanager.ConversionType
All Implemented Interfaces:
Serializable, Comparable<ConversionType>, Constable

public enum ConversionType extends Enum<ConversionType>
Represents ways in which objects can be mapped from config
  • Enum Constant Details

    • MAPPED_OBJECT

      public static final ConversionType MAPPED_OBJECT
      A config value mapped from a class annotated with ConfigMappable
    • STRING_CONVERTED

      public static final ConversionType STRING_CONVERTED
      A config value converted to and from a string using TypeConverters
    • PLAIN

      public static final ConversionType PLAIN
      A config value loaded and stored directly from config
    • AUTO

      public static final ConversionType AUTO
      Auto-detect the conversion type based on context
  • Method Details

    • values

      public static ConversionType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConversionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • auto

      protected static ConversionType auto(Class<?> clazz, ConfigManager manager)