mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
18 lines
354 B
Plaintext
Vendored
18 lines
354 B
Plaintext
Vendored
class Test {
|
|
var serial: String = ""
|
|
get
|
|
set
|
|
var name: String = ""
|
|
get
|
|
|
|
override fun equals(other: Any?): Boolean {
|
|
if (this === other) return true
|
|
if (javaClass != other?.javaClass) return false
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return javaClass.hashCode()
|
|
}
|
|
|
|
} |