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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Serializes this offset into a buffer of bytes
    default ByteBuffer
    Serializes this offset into a buffer of bytes
  • Field Details

  • Method Details

    • 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