feat: remove Temperature

This commit is contained in:
Martin Eyben 2024-11-19 17:45:52 +01:00
parent a7ec614471
commit ebf840a73d

View File

@ -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;
}
}