org.djutils.serialization.SerializableObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of djutils-serialization Show documentation
Show all versions of djutils-serialization Show documentation
DJUTILS serialization of data structures
package org.djutils.serialization;
import java.util.List;
/**
* 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
* @author Peter Knoppers
* @param type of object that implements this interface
*/
public 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.
* @return List<Object>; list of the elements that need to serialized
*/
List