View Javadoc
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://github.com/peter-knoppers">Peter Knoppers</a>
15   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
16   * @param <C> the time stamped object class.
17   * @param object the object.
18   * @param timestamp the time stamp.
19   */
20  public record TimeStampedObject<C>(C object, Time timestamp) implements Serializable
21  {
22      /** */
23      private static final long serialVersionUID = 20160129L;
24  }