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.
2 parents b247a89 + c0a1740 commit d485e02Copy full SHA for d485e02
model/src/main/kotlin/org/digma/intellij/plugin/model/rest/environment/Env.kt
@@ -16,4 +16,18 @@ constructor(
16
val name: String,
17
val type: EnvType,
18
val lastActive: Date?
19
-)
+){
20
+ override fun equals(other: Any?): Boolean {
21
+ if (this === other) return true
22
+ if (other !is Env) return false
23
+
24
+ return id == other.id && name == other.name && type == other.type
25
+ }
26
27
+ override fun hashCode(): Int {
28
+ var result = id.hashCode()
29
+ result = 31 * result + name.hashCode()
30
+ result = 31 * result + type.hashCode()
31
+ return result
32
33
+}
0 commit comments