mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge-request: IJ-MR-146523 Merged-by: Maksim Zuev <Maksim.Zuev@jetbrains.com> GitOrigin-RevId: ed92f3474ee18e280297f1e6c935975496a36b8c
21 lines
628 B
Plaintext
21 lines
628 B
Plaintext
class Example(val `in`: String, val `cl ass`: String, val `valid`: Boolean) {
|
|
override fun equals(other: Any?): Boolean {
|
|
if (this === other) return true
|
|
if (javaClass != other?.javaClass) return false
|
|
|
|
other as Example
|
|
|
|
if (`valid` != other.`valid`) return false
|
|
if (`in` != other.`in`) return false
|
|
if (`cl ass` != other.`cl ass`) return false
|
|
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
var result = `valid`.hashCode()
|
|
result = 31 * result + `in`.hashCode()
|
|
result = 31 * result + `cl ass`.hashCode()
|
|
return result
|
|
}
|
|
} |