feat: remove Temperature
This commit is contained in:
parent
a7ec614471
commit
ebf840a73d
@ -1,42 +0,0 @@
|
||||
package eirb.pg203;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* Representation of a temperature in a city at a specific date
|
||||
*/
|
||||
public class Temperature {
|
||||
private City city;
|
||||
private Instant date;
|
||||
private float temp;
|
||||
|
||||
Temperature(float temp, City city, Instant date) {
|
||||
this.temp = temp;
|
||||
this.city = city;
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of the city from where the temperature come from
|
||||
* @return city
|
||||
*/
|
||||
public String getCity() {
|
||||
return this.city.getCityName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the date
|
||||
* @return date
|
||||
*/
|
||||
public Instant getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the temperature
|
||||
* @return temperature
|
||||
*/
|
||||
public float getTemp() {
|
||||
return temp;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user