Package io.fluxcapacitor.common.api
Interface SerializedObject<T>
- All Known Implementing Classes:
Data
,DefaultCasterChain.ConvertingSerializedObject
,SerializedMessage
public interface SerializedObject<T>
-
Method Summary
-
Method Details
-
data
Returns the serialized payload held by this object.- Returns:
- the serialized payload
-
withData
Returns a newSerializedObject
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 bethis
if unchanged
-
getRevision
default int getRevision()Returns the revision of the serialized object. -
getType
Returns the type identifier for the serialized payload.
-