Package org.djutils.serialization
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 Summary
ConstructorDescriptionMinimalSerializableObject
(List<Object> list) Construct a new MinimalCompound object. -
Method Summary
Modifier and TypeMethodDescriptionMake all elements that need to be serialized available as a list.
-
Constructor Details
-
MinimalSerializableObject
Construct a new MinimalCompound object.- Parameters:
list
- List<Object>; the object list that is returned byexportAsList
method
-
-
Method Details
-
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 interfaceSerializableObject<TypedMessage.MinimalSerializableObject>
- Returns:
- List<Object>; list of the elements that need to serialized
-