Class TypedMessage.MinimalSerializableObject

java.lang.Object
org.djutils.serialization.TypedMessage.MinimalSerializableObject
All Implemented Interfaces:
SerializableObject<TypedMessage.MinimalSerializableObject>
Enclosing class:
TypedMessage

static class TypedMessage.MinimalSerializableObject extends Object implements SerializableObject<TypedMessage.MinimalSerializableObject>
Minimal implementation of SerializableObject.
  • Constructor Details

    • MinimalSerializableObject

      MinimalSerializableObject(List<Object> list)
      Construct a new MinimalCompound object.
      Parameters:
      list - List<Object>; the object list that is returned by exportAsList method
  • Method Details

    • exportAsList

      public List<Object> exportAsList()
      Description copied from interface: SerializableObject
      Make all elements that need to be serialized available as a list. The size of this list and the types of the elements in it must be consistent. Meaning that the size of the list and content types of the list are always the same.
      Specified by:
      exportAsList in interface SerializableObject<TypedMessage.MinimalSerializableObject>
      Returns:
      List<Object>; list of the elements that need to serialized