2022-09-27 06:01:53 -07:00
|
|
|
package cash.z.ecc.android.sdk.model
|
|
|
|
|
2023-09-19 10:07:11 -07:00
|
|
|
import cash.z.ecc.android.sdk.ext.toHex
|
|
|
|
|
2022-09-27 06:01:53 -07:00
|
|
|
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
|
|
|
|
|
2023-09-20 06:51:37 -07:00
|
|
|
return byteArray.contentEquals(other.byteArray)
|
2022-09-27 06:01:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
override fun hashCode() = byteArray.contentHashCode()
|
2023-09-19 10:07:11 -07:00
|
|
|
|
|
|
|
override fun toString(): String {
|
2023-09-20 06:51:37 -07:00
|
|
|
return "FirstClassByteArray(${byteArray.toHex()})"
|
2023-09-19 10:07:11 -07:00
|
|
|
}
|
2022-09-27 06:01:53 -07:00
|
|
|
}
|