Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSCommon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSCommon
Commits
d4ea245f
Commit
d4ea245f
authored
4 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Changed value type from primitive double to Double object
parent
226f462e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/no/nibio/vips/entity/WeatherObservation.java
+3
-3
3 additions, 3 deletions
src/main/java/no/nibio/vips/entity/WeatherObservation.java
src/main/java/no/nibio/vips/util/WeatherUtil.java
+1
-1
1 addition, 1 deletion
src/main/java/no/nibio/vips/util/WeatherUtil.java
with
4 additions
and
4 deletions
src/main/java/no/nibio/vips/entity/WeatherObservation.java
+
3
−
3
View file @
d4ea245f
...
@@ -46,7 +46,7 @@ public class WeatherObservation implements Comparable{
...
@@ -46,7 +46,7 @@ public class WeatherObservation implements Comparable{
private
String
elementMeasurementTypeId
;
private
String
elementMeasurementTypeId
;
private
Integer
logIntervalId
;
private
Integer
logIntervalId
;
private
Date
timeMeasured
;
private
Date
timeMeasured
;
private
d
ouble
value
;
private
D
ouble
value
;
/** Creates a new instance of WeatherObservation */
/** Creates a new instance of WeatherObservation */
public
WeatherObservation
()
{
public
WeatherObservation
()
{
...
@@ -134,14 +134,14 @@ public class WeatherObservation implements Comparable{
...
@@ -134,14 +134,14 @@ public class WeatherObservation implements Comparable{
/**
/**
* @return the value
* @return the value
*/
*/
public
d
ouble
getValue
()
{
public
D
ouble
getValue
()
{
return
value
;
return
value
;
}
}
/**
/**
* @param value the value to set
* @param value the value to set
*/
*/
public
final
void
setValue
(
d
ouble
value
)
{
public
final
void
setValue
(
D
ouble
value
)
{
this
.
value
=
value
;
this
.
value
=
value
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/no/nibio/vips/util/WeatherUtil.java
+
1
−
1
View file @
d4ea245f
...
@@ -702,7 +702,7 @@ public class WeatherUtil {
...
@@ -702,7 +702,7 @@ public class WeatherUtil {
wind2m
.
get
(
0
).
getValue
(),
wind2m
.
get
(
0
).
getValue
(),
globalRadiation
.
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
// Iterating list with index (instead of using Iterator pattern) has
// performance gains on very long lists
// performance gains on very long lists
for
(
int
i
=
1
;
i
<
temperature
.
size
();
i
++)
for
(
int
i
=
1
;
i
<
temperature
.
size
();
i
++)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment