Package org.djutils.serialization
Interface SerializableObject<T>
- Type Parameters:
T
- type of object that implements this interface
- All Known Implementing Classes:
TypedMessage.MinimalSerializableObject
public interface SerializableObject<T>
Interface that must be implemented by objects that can be serialized.
Copyright (c) 2019-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Method Summary
Modifier and TypeMethodDescriptionMake all elements that need to be serialized available as a list.
-
Method Details
-
exportAsList
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.- Returns:
- List<Object>; list of the elements that need to serialized
-