File tree Expand file tree Collapse file tree 7 files changed +80
-2
lines changed
open-weather-wrapper/src/main/java/com/openweatherweapper Expand file tree Collapse file tree 7 files changed +80
-2
lines changed Original file line number Diff line number Diff line change 1414
1515@ SuppressWarnings ("WeakerAccess" )
1616public class Unit {
17+ /**
18+ * Matrix units.
19+ * <p>
20+ * <li>Temperature: Celsius</li>
21+ * <li>Speed: meter/sec</li>
22+ */
1723 public static final String MATRIX = "metric" ;
24+
25+ /**
26+ * Standard international units.
27+ * <p>
28+ * <li>Temperature: Kelvin</li>
29+ * <li>Speed: meter/sec</li>
30+ */
1831 public static final String STANDARD = "" ;
32+
33+ /**
34+ * Imperial units.
35+ * <p>
36+ * <li>Temperature: Fahrenheit</li>
37+ * <li>Speed: miles/hour</li>
38+ */
1939 public static final String IMPERIAL = "imperial" ;
2040
2141
Original file line number Diff line number Diff line change @@ -130,10 +130,18 @@ public String getCityName() {
130130 return cityName ;
131131 }
132132
133+ /**
134+ * @return Rain information
135+ * @see Rain
136+ */
133137 public Rain getRainInfo () {
134138 return rainInfo ;
135139 }
136140
141+ /**
142+ * @return Snow information
143+ * @see Snow
144+ */
137145 public Snow getSnowInfo () {
138146 return snowInfo ;
139147 }
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ public class MultipleCitiesWeathers {
2121 @ Expose
2222 private List <CurrentWeather > weatherInfos = new ArrayList <>();
2323
24+ /**
25+ * @return list of {@link CurrentWeather} information for each city
26+ */
2427 public List <CurrentWeather > getWeatherInfos () {
2528 return weatherInfos ;
2629 }
Original file line number Diff line number Diff line change @@ -25,13 +25,22 @@ public class WeatherForecast {
2525 @ Expose
2626 private List <Forecast > forecast = null ;
2727
28+ /**
29+ * @return City information
30+ * @see City
31+ */
2832 public City getCity () {
2933 return city ;
3034 }
35+
3136 public Long getNoOfForecastResult () {
3237 return noOfForecastResult ;
3338 }
3439
40+ /**
41+ * @return List of weather forecast for timed interval.
42+ * @see Forecast
43+ */
3544 public List <Forecast > getForecast () {
3645 return forecast ;
3746 }
Original file line number Diff line number Diff line change @@ -22,22 +22,38 @@ public class City {
2222 @ Expose
2323 private long population ;
2424
25+ /**
26+ * @return id of the city
27+ */
2528 public Long getId () {
2629 return id ;
2730 }
2831
32+ /**
33+ * @return nam eof the city
34+ */
2935 public String getName () {
3036 return name ;
3137 }
3238
39+ /**
40+ * @return Coordinates of the city
41+ * @see Coord
42+ */
3343 public Coord getCoord () {
3444 return coord ;
3545 }
3646
47+ /**
48+ * @return ISO 3166 country code.
49+ */
3750 public String getCountry () {
3851 return country ;
3952 }
4053
54+ /**
55+ * @return Population of the city. If not available, value will be 0.
56+ */
4157 public Long getPopulation () {
4258 return population ;
4359 }
Original file line number Diff line number Diff line change 44import com .google .gson .annotations .Expose ;
55import com .google .gson .annotations .SerializedName ;
66
7+ /**
8+ * Latitude and longitude coordinates for the geo point.
9+ */
710public class Coord {
811
912 @ SerializedName ("lon" )
Original file line number Diff line number Diff line change @@ -32,29 +32,48 @@ public class Forecast {
3232 private Rain rain ;
3333
3434 /**
35- *
3635 * @return Time of data forecasted, unix, UTC
3736 */
3837 public Long getForecastTime () {
3938 return forecastTime ;
4039 }
4140
41+ /**
42+ * @return {@link Main}
43+ * @see Main
44+ */
4245 public Main getMain () {
4346 return main ;
4447 }
4548
46- public java .util .List <Weather > getWeather () {
49+ /**
50+ * @return Weather information
51+ * @see Weather
52+ */
53+ public List <Weather > getWeather () {
4754 return weather ;
4855 }
4956
57+ /**
58+ * @return Get cloudiness information
59+ * @see Clouds
60+ */
5061 public Clouds getClouds () {
5162 return clouds ;
5263 }
5364
65+ /**
66+ * @return Wind information
67+ * @see Wind
68+ */
5469 public Wind getWind () {
5570 return wind ;
5671 }
5772
73+ /**
74+ * @return Rain information
75+ * @see Rain
76+ */
5877 public Rain getRain () {
5978 return rain ;
6079 }
You can’t perform that action at this time.
0 commit comments