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
2
Merged
Sören Henning
requested to merge
clean-up-script-names
into
master
4 years ago
Overview
0
Commits
4
Pipelines
6
Changes
2
Expand
Fixes
#37 (closed)
Edited
4 years ago
by
Sören Henning
0
0
Merge request reports
Viewing commit
dfa273cc
Show latest version
2 files
+
42
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
dfa273cc
Add equals/hachCode functions
· dfa273cc
Sören Henning
authored
4 years ago
uc2-application/src/main/java/theodolite/uc2/streamprocessing/JointRecordParents.java
+
22
−
0
Options
package
theodolite.uc2.streamprocessing
;
import
java.util.Objects
;
import
java.util.Set
;
import
titan.ccp.models.records.ActivePowerRecord
;
@@ -26,6 +27,27 @@ public class JointRecordParents {
return
this
.
record
;
}
@Override
public
String
toString
()
{
return
"{"
+
this
.
parents
+
", "
+
this
.
record
+
"}"
;
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
this
.
parents
,
this
.
record
);
}
@Override
public
boolean
equals
(
final
Object
obj
)
{
if
(
obj
==
this
)
{
return
true
;
}
if
(
obj
instanceof
JointRecordParents
)
{
final
JointRecordParents
other
=
(
JointRecordParents
)
obj
;
return
Objects
.
equals
(
this
.
parents
,
other
.
parents
)
&&
Objects
.
equals
(
this
.
record
,
other
.
record
);
}
return
false
;
}
}
Loading