Interface Serializable

  • All Known Subinterfaces:
    Offset<T>, OffsetKey<K>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Serializable
    An interface that represents resumable objects that can be serialized to a medium
    • Method Detail

      • serialize

        default ByteBuffer serialize​(Object obj)
        Serializes this offset into a buffer of bytes
        Parameters:
        obj - the object to serialize
        Returns:
        a ByteBuffer instance with the serialized contents of this object
      • serialize

        ByteBuffer serialize()
        Serializes this offset into a buffer of bytes
        Returns:
        a ByteBuffer instance with the serialized contents of this object