class Temperature {

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		Temperature that = (Temperature) o;
		return Double.compare(that.value, value) == 0 &&
			type == that.type;
	}

	@JsonCreator public  Temperature(
		@JsonProperty("value") double value,
		@JsonProperty("type") TemperatureType type);

}