All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.djutils.serialization.SerializableObject Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
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 exportAsList(); }