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

      @NotNull public ForecastAtHour getForecastByTime​(@NotNull 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

      @NotNull 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 LocalTime getMoonRise()
    • getMoonSet

      public LocalTime getMoonSet()
    • getSunSet

      public LocalTime getSunSet()
    • getSunRise

      public LocalTime getSunRise()
    • getAverageTemperatureC

      public int getAverageTemperatureC()
    • getDate

      public 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()
    • print

      public void print()
      prints current object.toString to the console
    • getLocation

      public String getLocation()
      Returns:
      location provided in the constructor of this class or its parent class
      if you need to get more detailed information, use NearestArea
    • getAverageTemperatureF

      public int getAverageTemperatureF()
    • getTimes

      public TIME[] getTimes()
    • toString

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