We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ba32d commit d9e5f34Copy full SHA for d9e5f34
mini-common/src/main/java/mini/Resource.kt
@@ -56,6 +56,19 @@ open class Resource<out T> @PublishedApi internal constructor(val value: Any?) {
56
override fun toString(): String {
57
return value.toString()
58
}
59
+
60
+ override fun equals(other: Any?): Boolean {
61
+ if (this === other) return true
62
+ if (javaClass != other?.javaClass) return false
63
64
+ other as Resource<*>
65
66
+ if (value != other.value) return false
67
68
+ return true
69
+ }
70
71
+ override fun hashCode(): Int = value?.hashCode() ?: 0
72
73
74
/**
0 commit comments