java.lang.Object
cz.krystofcejchan.lite_weather_lib.weather_objects.subparts.forecast.days.Today
All Implemented Interfaces:
IForecastDayTimesAndDays

public final class Today extends Object implements IForecastDayTimesAndDays
WeatherForecast for today
Version:
17
Author:
krystof-cejchan
  • Constructor Details

  • Method Details

    • getDay

      public DAY getDay()
      Specified by:
      getDay in interface IForecastDayTimesAndDays
      Returns:
      day which implementing class represents
    • getTime

      public TIME[] getTime()
      Specified by:
      getTime in interface IForecastDayTimesAndDays
      Returns:
      time provided by user when calling this class or superclass
    • getForecastByTime

      public ForecastAtHour getForecastByTime(TIME time) throws NoDataFoundForThisDayAndTime
      Description copied from interface: IForecastDayTimesAndDays
      implemented by Today, Tomorrow and AfterTomorrow, therefor no day is needed
      Specified by:
      getForecastByTime in interface IForecastDayTimesAndDays
      Parameters:
      time - for weather data
      Returns:
      ForecastAtHour object containing all data for specific day and time
      Throws:
      NoDataFoundForThisDayAndTime
    • getAllForecastsForToday

      public Map<TIME,ForecastAtHour> getAllForecastsForToday()
      get all possible forecast for TIMEs provided in constructor
      Returns:
      map of time and forecast
    • getMoonIllumination

      public int getMoonIllumination()
    • getMoonPhase

      public String getMoonPhase()
    • getMoonRise

      public java.time.LocalTime getMoonRise()
    • getMoonSet

      public java.time.LocalTime getMoonSet()
    • getSunSet

      public java.time.LocalTime getSunSet()
    • getSunRise

      public java.time.LocalTime getSunRise()
    • getAverageTemperatureC

      public int getAverageTemperatureC()
    • getaverageTemperatureF

      public int getaverageTemperatureF()
    • getDate

      public java.time.LocalDate getDate()
    • getMaxTemperatureC

      public int getMaxTemperatureC()
    • getMaxTemperatureF

      public int getMaxTemperatureF()
    • getMinTemperatureC

      public int getMinTemperatureC()
    • getMinTemperatureF

      public int getMinTemperatureF()
    • getSunHour

      public double getSunHour()
    • getTotalSnowCM

      public double getTotalSnowCM()
    • getTotalSnowInches

      public double getTotalSnowInches()
    • getUvIndex

      public int getUvIndex()
    • getForecastHourlyList

      public List<ForecastAtHour> getForecastHourlyList()
    • toString

      @Contract(pure=true) @NotNull public String toString()
      Overrides:
      toString in class Object