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
!27
Resolve "Add equals/hash methods for serializable classes"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add equals/hash methods for serializable classes"
54-add-equals-hash-methods-for-serializable-classes
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Sören Henning
requested to merge
54-add-equals-hash-methods-for-serializable-classes
into
master
5 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#54 (closed)
Edited
5 years ago
by
Sören Henning
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
15c44c70
1 commit,
5 years ago
1 file
+
20
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
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