1 package org.opentrafficsim.base; 2 3 import java.io.Serializable; 4 5 import org.djunits.value.vdouble.scalar.Time; 6 7 /** 8 * An object with a time stamp, where the object is of a specific class. 9 * <p> 10 * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 11 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 12 * </p> 13 * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a> 14 * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a> 15 * @param <C> the time stamped object class. 16 * @param object C; the object. 17 * @param timestamp Time; the time stamp. 18 */ 19 public record TimeStampedObject<C>(C object, Time timestamp) implements Serializable 20 { 21 /** */ 22 private static final long serialVersionUID = 20160129L; 23 }