Class TemporalValue<V extends Serializable>

java.lang.Object
types.temporal.TemporalValue<V>
Type Parameters:
V - Could be Integer, Boolean, Float, String, etc
All Implemented Interfaces:
Serializable

public class TemporalValue<V extends Serializable> extends Object implements Serializable
Wrapper class that consists in the value and a timestamp
Author:
ARIJIT SAMAL
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getValue

      public V getValue()
    • setValue

      public void setValue(V value)
    • getTime

      public OffsetDateTime getTime()
    • setTime

      public void setTime(OffsetDateTime time)
    • equals

      public boolean equals(Object obj)
      Returns the temporal value in MobilityDB format eg: 10@2021-04-08 05:04:45+02
      Overrides:
      equals in class Object
      Returns:
      String
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object