Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Merge requests
!11
Clean up script names
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Clean up script names
clean-up-script-names
into
master
Overview
0
Commits
4
Pipelines
6
Changes
1
Merged
Sören Henning
requested to merge
clean-up-script-names
into
master
4 years ago
Overview
0
Commits
4
Pipelines
6
Changes
1
Expand
Fixes
#37 (closed)
Edited
4 years ago
by
Sören Henning
0
0
Merge request reports
Viewing commit
9e7a745e
Show latest version
1 file
+
20
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9e7a745e
Add hashCode and equals method
· 9e7a745e
Sören Henning
authored
4 years ago
uc4-application/src/main/java/theodolite/uc4/streamprocessing/HourOfDayKey.java
+
20
−
0
Options
package
theodolite.uc4.streamprocessing
;
package
theodolite.uc4.streamprocessing
;
import
java.util.Objects
;
/**
/**
* Composed key of an hour of the day and a sensor id.
* Composed key of an hour of the day and a sensor id.
*/
*/
@@ -26,4 +28,22 @@ public class HourOfDayKey {
@@ -26,4 +28,22 @@ public class HourOfDayKey {
return
this
.
sensorId
+
";"
+
this
.
hourOfDay
;
return
this
.
sensorId
+
";"
+
this
.
hourOfDay
;
}
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
this
.
hourOfDay
,
this
.
sensorId
);
}
@Override
public
boolean
equals
(
final
Object
obj
)
{
if
(
obj
==
this
)
{
return
true
;
}
if
(
obj
instanceof
HourOfDayKey
)
{
final
HourOfDayKey
other
=
(
HourOfDayKey
)
obj
;
return
Objects
.
equals
(
this
.
hourOfDay
,
other
.
hourOfDay
)
&&
Objects
.
equals
(
this
.
sensorId
,
other
.
sensorId
);
}
return
false
;
}
}
}
Loading