View Javadoc
1   package org.opentrafficsim.base;
2   
3   import org.djunits.value.vdouble.scalar.Duration;
4   
5   /**
6    * An object with a time stamp, where the object is of a specific class.
7    * <p>
8    * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9    * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
10   * </p>
11   * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
12   * @author <a href="https://github.com/peter-knoppers">Peter Knoppers</a>
13   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
14   * @param <C> the time stamped object class.
15   * @param object the object.
16   * @param timestamp the simulation time stamp.
17   */
18  public record TimeStampedObject<C>(C object, Duration timestamp)
19  {
20  }