Add interfaces for weather forecasting.
Co-Authored-By: os222
This commit is contained in:
parent
416d4caaed
commit
8d6c6415ac
|
@ -0,0 +1,7 @@
|
|||
package ic.doc;
|
||||
|
||||
public interface WeatherForecast {
|
||||
String summary();
|
||||
|
||||
int temperature();
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package ic.doc;
|
||||
|
||||
public interface WeatherForecaster {
|
||||
WeatherForecast forecastFor(WeatherRegion region, Weekday day);
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package ic.doc;
|
||||
|
||||
public enum WeatherRegion {
|
||||
BIRMINGHAM,
|
||||
EDINBURGH,
|
||||
GLASGOW,
|
||||
LONDON,
|
||||
MANCHESTER,
|
||||
NORTH_ENGLAND,
|
||||
SOUTH_WEST_ENGLAND,
|
||||
SOUTH_EAST_ENGLAND,
|
||||
WALES
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package ic.doc;
|
||||
|
||||
public enum Weekday {
|
||||
MONDAY,
|
||||
TUESDAY,
|
||||
WEDNESDAY,
|
||||
THURSDAY,
|
||||
FRIDAY,
|
||||
SATURDAY,
|
||||
SUNDAY
|
||||
}
|
Loading…
Reference in New Issue