Package 

Class Serialization

    • Method Summary

      Modifier and Type Method Description
      static <T> T serializeDeserialize(@NotNull() T obj) Serializes and deserializes the passed object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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