Skip to content
Snippets Groups Projects
Commit d4ea245f authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Changed value type from primitive double to Double object

parent 226f462e
Branches
Tags
No related merge requests found
......@@ -46,7 +46,7 @@ public class WeatherObservation implements Comparable{
private String elementMeasurementTypeId;
private Integer logIntervalId;
private Date timeMeasured;
private double value;
private Double value;
/** Creates a new instance of WeatherObservation */
public WeatherObservation() {
......@@ -134,14 +134,14 @@ public class WeatherObservation implements Comparable{
/**
* @return the value
*/
public double getValue() {
public Double getValue() {
return value;
}
/**
* @param value the value to set
*/
public final void setValue(double value) {
public final void setValue(Double value) {
this.value = value;
}
......
......@@ -702,7 +702,7 @@ public class WeatherUtil {
wind2m.get(0).getValue(),
globalRadiation.get(0).getValue()
);
Integer precedingLeafWetnessValue = precedingLeafWetness != null ? (int) precedingLeafWetness.getValue() : 0;
Integer precedingLeafWetnessValue = precedingLeafWetness != null ? precedingLeafWetness.getValue().intValue() : 0;
// Iterating list with index (instead of using Iterator pattern) has
// performance gains on very long lists
for(int i=1;i<temperature.size();i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment