org.djutils.serialization.SerializableObject Maven / Gradle / Ivy
Show all versions of djutils-serialization Show documentation
package org.djutils.serialization;
import java.util.List;
/**
* Interface that must be implemented by objects that can be serialized.
*
* Copyright (c) 2019-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See DJUTILS License.
*
* @version $Revision$, $LastChangedDate$, by $Author$,
* @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