Class Today
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 Summary
-
Method Summary
Modifier and Type Method Description Map<TIME,ForecastAtHour>getAllForecastsForToday()get all possible forecast forTIMEs provided in constructorintgetAverageTemperatureC()intgetAverageTemperatureF()LocalDategetDate()DAYgetDay()ForecastAtHourgetForecastByTime(TIME time)implemented by Today, Tomorrow and AfterTomorrow, therefor no day is neededList<ForecastAtHour>getForecastHourlyList()StringgetLocation()intgetMaxTemperatureC()intgetMaxTemperatureF()intgetMinTemperatureC()intgetMinTemperatureF()intgetMoonIllumination()StringgetMoonPhase()LocalTimegetMoonRise()LocalTimegetMoonSet()doublegetSunHour()LocalTimegetSunRise()LocalTimegetSunSet()TIME[]getTime()TIME[]getTimes()doublegetTotalSnowCM()doublegetTotalSnowInches()intgetUvIndex()voidprint()prints current object.toString to the consoleStringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cz.krystofcejchan.lite_weather_lib.weather_objects.subparts.forecast.days.hour.IForecastDayTimesAndDays
addHour
-
Constructor Details
-
Today
- Throws:
CouldNotFindLocation
-
-
Method Details
-
getDay
- Specified by:
getDayin interfaceIForecastDayTimesAndDays- Returns:
- day which implementing class represents
-
getTime
- Specified by:
getTimein interfaceIForecastDayTimesAndDays- Returns:
- time provided by user when calling this class or superclass
-
getForecastByTime
@NotNull public ForecastAtHour getForecastByTime(@NotNull TIME time) throws NoDataFoundForThisDayAndTimeDescription copied from interface:IForecastDayTimesAndDaysimplemented by Today, Tomorrow and AfterTomorrow, therefor no day is needed- Specified by:
getForecastByTimein interfaceIForecastDayTimesAndDays- Parameters:
time- for weather data- Returns:
- ForecastAtHour object containing all data for specific day and time
- Throws:
NoDataFoundForThisDayAndTime
-
getAllForecastsForToday
get all possible forecast forTIMEs provided in constructor- Returns:
- map of time and forecast
-
getMoonIllumination
public int getMoonIllumination() -
getMoonPhase
-
getMoonRise
-
getMoonSet
-
getSunSet
-
getSunRise
-
getAverageTemperatureC
public int getAverageTemperatureC() -
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
-
print
public void print()prints current object.toString to the console -
getLocation
- Returns:
- location provided in the constructor of this class or its parent class
if you need to get more detailed information, useNearestArea
-
getAverageTemperatureF
public int getAverageTemperatureF() -
getTimes
-
toString
-