Interface ObjectSubstitution<F,​T>

  • Type Parameters:
    F - The non serializable class
    T - The serializable class
    All Known Implementing Classes:
    ZoneIdSubstitution

    public interface ObjectSubstitution<F,​T>
    An interface that can be used to substitute a non-bytecode serializable class with a replacement. Instances of this interface must be public, and have a public default constructor, as they will be instantiated directly via generated bytecode
    • Method Detail

      • serialize

        T serialize​(F obj)
      • deserialize

        F deserialize​(T obj)