We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd7bfb commit c878928Copy full SHA for c878928
project-management/src/main/java/life/qbic/projectmanagement/domain/model/experiment/Condition.java
@@ -6,6 +6,7 @@
6
import java.util.ArrayList;
7
import java.util.Collection;
8
import java.util.Collections;
9
+import java.util.HashSet;
10
import java.util.List;
11
import java.util.Objects;
12
import java.util.Optional;
@@ -104,8 +105,8 @@ public boolean equals(Object o) {
104
105
}
106
107
Condition condition = (Condition) o;
-
108
- return this.variableLevels.equals(condition.variableLevels);
+ //we do not care about the order when comparing
109
+ return new HashSet<>(variableLevels).equals(new HashSet<>(condition.variableLevels));
110
111
112
@Override
0 commit comments