File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/env/application/presenter/configuration/model/scenario Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
package application .presenter .configuration .model .scenario ;
10
10
11
+ import java .util .Objects ;
12
+
11
13
/**
12
14
* Class that models a medical technology scenario config.
13
15
*/
@@ -78,4 +80,21 @@ public Double getSurgicalIlluminance() {
78
80
public void setSurgicalIlluminance (final Double surgicalIlluminance ) {
79
81
this .surgicalIlluminance = surgicalIlluminance ;
80
82
}
83
+
84
+ @ Override
85
+ public final boolean equals (final Object other ) {
86
+ if (this == other ) {
87
+ return true ;
88
+ }
89
+ if (other == null || this .getClass () != other .getClass ()) {
90
+ return false ;
91
+ }
92
+ final MedicalTechnologyScenario that = (MedicalTechnologyScenario ) other ;
93
+ return this .getMedicalTechnologyType ().equals (that .getMedicalTechnologyType ());
94
+ }
95
+
96
+ @ Override
97
+ public final int hashCode () {
98
+ return Objects .hash (this .getMedicalTechnologyType ());
99
+ }
81
100
}
You can’t perform that action at this time.
0 commit comments