Interface SerializedObject<T>

All Known Implementing Classes:
Data, DefaultCasterChain.ConvertingSerializedObject, SerializedMessage

public interface SerializedObject<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the serialized payload held by this object.
    default int
    Returns the revision of the serialized object.
    default String
    Returns the type identifier for the serialized payload.
    withData(Data<T> data)
    Returns a new SerializedObject with the given data object.
  • Method Details

    • data

      Data<T> data()
      Returns the serialized payload held by this object.
      Returns:
      the serialized payload
    • withData

      SerializedObject<T> withData(Data<T> data)
      Returns a new SerializedObject with the given data object. If the given data is the same instance as the current one, this may be returned.
      Parameters:
      data - the new serialized payload
      Returns:
      a new SerializedObject instance. May be this if unchanged
    • getRevision

      default int getRevision()
      Returns the revision of the serialized object.
    • getType

      default String getType()
      Returns the type identifier for the serialized payload.