-
public class Serialization
-
-
Method Summary
Modifier and Type Method Description static <T> T
serializeDeserialize(@NotNull() T obj)
Serializes and deserializes the passed object. -
-
Method Detail
-
serializeDeserialize
static <T> T serializeDeserialize(@NotNull() T obj)
Serializes and deserializes the passed object. Note: Lambdas and anonymous classes are NOT serializable in Java 8. Only enums and classes that implement Serializable are. This might be the best reason to use enums for singletons.
- Parameters:
obj
- the item to serialize and deserialize
-
-
-
-