17 lines
431 B
Kotlin
17 lines
431 B
Kotlin
|
package cash.z.ecc.android.sdk.model
|
||
|
|
||
|
class FirstClassByteArray(val byteArray: ByteArray) {
|
||
|
override fun equals(other: Any?): Boolean {
|
||
|
if (this === other) return true
|
||
|
if (javaClass != other?.javaClass) return false
|
||
|
|
||
|
other as FirstClassByteArray
|
||
|
|
||
|
if (!byteArray.contentEquals(other.byteArray)) return false
|
||
|
|
||
|
return true
|
||
|
}
|
||
|
|
||
|
override fun hashCode() = byteArray.contentHashCode()
|
||
|
}
|