java.lang.Object
xyz.janboerman.scalaloader.configurationserializable.runtime.types.Enum<E>
All Implemented Interfaces:
ConfigurationSerializable, Adapter<E>

public abstract class Enum<E extends Enum<E>> extends Object implements Adapter<E>
  • Constructor Details

    • Enum

      protected Enum()
  • Method Details

    • forEnum

      public static <ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader> ConfigurationSerializable forEnum(Enum<?> enumValue, ScalaPluginClassLoader classLoader)
      Get an instance that represents the enum value that is configuration-serializable. If the enum itself is configuration-serializable, then than it is immediately returned. Otherwise, a wrapper is used.
      Parameters:
      enumValue - a value in an enumeration
      classLoader - the ScalaPlugin's classloader
      Returns:
      the configuration-serializable enum value.