Class TimeBasedWeatherValueData


public class TimeBasedWeatherValueData extends TimeBasedValueData<WeatherValue>
  • Constructor Details

    • TimeBasedWeatherValueData

      public TimeBasedWeatherValueData(Map<String,String> fieldsToAttributes, org.locationtech.jts.geom.Point coordinate)
      Creates a new TimeBasedEntryData object
      Parameters:
      fieldsToAttributes - attribute map: field name to value
      coordinate - coordinate for this WeatherValue
  • Method Details

    • getCoordinate

      public org.locationtech.jts.geom.Point getCoordinate()
    • getQuantity

      public <Q extends javax.measure.Quantity<Q>> tech.units.indriya.ComparableQuantity<Q> getQuantity(String field, javax.measure.Unit<Q> unit)
      Description copied from class: FactoryData
      Parses and returns a Quantity from field value of given field name. Throws FactoryException if field does not exist or parsing fails.
      Overrides:
      getQuantity in class FactoryData
      Type Parameters:
      Q - unit type parameter
      Parameters:
      field - field name
      unit - unit of Quantity
      Returns:
      Quantity of given field with given unit
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class FactoryData
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FactoryData
    • toString

      public String toString()
      Overrides:
      toString in class TimeBasedValueData<WeatherValue>