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

us.ihmc.commons.time.TimedValue Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
package us.ihmc.commons.time;

public class TimedValue implements TimeIntervalProvider
{
   private int value;
   private final TimeInterval timeInterval;

   public TimedValue()
   {
      this.value = 0;
      this.timeInterval = new TimeInterval();
   }

   public TimedValue(int value, TimeInterval timeInterval)
   {
      this.value = value;
      this.timeInterval = new TimeInterval(timeInterval);
   }

   public void set(TimedValue other)
   {
      this.value = other.value;
      this.timeInterval.set(other.timeInterval);
   }

   public int getValue()
   {
      return value;
   }

   @Override
   public TimeInterval getTimeInterval()
   {
      return timeInterval;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy