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
e417a3cf
Commit
e417a3cf
authored
11 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Renamed Observation to WeatherObservation
parent
b2338fa4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/bioforsk/vips/entity/WeatherObservation.java
+5
-5
5 additions, 5 deletions
...main/java/no/bioforsk/vips/entity/WeatherObservation.java
with
5 additions
and
5 deletions
src/main/java/no/bioforsk/vips/entity/Observation.java
→
src/main/java/no/bioforsk/vips/entity/
Weather
Observation.java
+
5
−
5
View file @
e417a3cf
...
...
@@ -8,15 +8,15 @@ import java.util.Date;
* @copyright 2013 <a href="http://www.bioforsk.no/">Bioforsk</a>
* @author Tor-Einar Skog <tor-einar.skog@bioforsk.no>
*/
public
class
Observation
implements
Comparable
{
public
class
Weather
Observation
implements
Comparable
{
private
String
elementMeasurementTypeId
;
private
Integer
logIntervalId
;
private
Date
timeMeasured
;
private
double
value
;
/** Creates a new instance of Observation */
public
Observation
()
{
/** Creates a new instance of
Weather
Observation */
public
Weather
Observation
()
{
}
public
void
setTimeMeasured
(
Date
timeMeasured
)
{
this
.
timeMeasured
=
timeMeasured
;
}
...
...
@@ -36,7 +36,7 @@ public class Observation implements Comparable{
* Compares by time measured in ascending order
*/
public
int
compareTo
(
Object
o
)
{
Observation
other
=
(
Observation
)
o
;
Weather
Observation
other
=
(
Weather
Observation
)
o
;
return
this
.
compareTo
(
other
);
}
...
...
@@ -46,7 +46,7 @@ public class Observation implements Comparable{
* @param other the observation to compare to
* @return
*/
public
int
compareTo
(
Observation
other
)
public
int
compareTo
(
Weather
Observation
other
)
{
if
(
this
.
getTimeMeasured
()
==
null
&&
other
.
getTimeMeasured
()
==
null
)
return
0
;
...
...
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