Override hashCode

This commit is contained in:
Luna712 2024-06-20 18:34:57 -06:00 committed by GitHub
parent 2122677663
commit bd9c88464e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,6 +43,13 @@ abstract class VisualDownloadCached(
return true return true
} }
override fun hashCode(): Int {
var result = currentBytes.hashCode()
result = 31 * result + totalBytes.hashCode()
result = 31 * result + data.hashCode()
return result
}
} }
data class VisualDownloadChildCached( data class VisualDownloadChildCached(