Interface RestorableState<T extends Restorable<T>>

  • Type Parameters:
    T - the restored object's type
    All Known Implementing Classes:
    BaseWriteChannel.BaseState

    public interface RestorableState<T extends Restorable<T>>
    A common interface for restorable states. Implementations of RestorableState are capable of saving the state of an object to restore it for later use.

    Implementations of this class must implement Serializable to ensure that the state of a the object can be correctly serialized.

    • Method Detail

      • restore

        T restore()
        Returns an object whose internal state reflects the one saved in the invocation object.