Class Either<L,R>
java.lang.Object
xyz.janboerman.scalaloader.configurationserializable.runtime.types.Either<L,R>
- All Implemented Interfaces:
ConfigurationSerializable
- Direct Known Subclasses:
Either.Left
,Either.Right
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <SPCL extends ClassLoader & IScalaPluginClassLoader>
Objectdeserialize
(Object serializedEither, ParameterType type, SPCL plugin) static boolean
isEither
(Object live, ClassLoader pluginClassLoader) static boolean
static void
static <SPCL extends ClassLoader & IScalaPluginClassLoader>
ConfigurationSerializableserialize
(Object scalaEither, ParameterType type, SPCL pluginClassLoader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Method Details
-
registerWithConfigurationSerialization
public static void registerWithConfigurationSerialization() -
isEither
-
serialize
public static <SPCL extends ClassLoader & IScalaPluginClassLoader> ConfigurationSerializable serialize(Object scalaEither, ParameterType type, SPCL pluginClassLoader) -
isSerializedEither
-
deserialize
public static <SPCL extends ClassLoader & IScalaPluginClassLoader> Object deserialize(Object serializedEither, ParameterType type, SPCL plugin)
-