mirror of
https://github.com/T8RIN/ImageToolbox.git
synced 2025-05-20 06:56:22 +08:00
fix
This commit is contained in:
@ -15,6 +15,8 @@
|
|||||||
* along with this program. If not, see <http://www.apache.org/licenses/LICENSE-2.0>.
|
* along with this program. If not, see <http://www.apache.org/licenses/LICENSE-2.0>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@file:Suppress("SpellCheckingInspection")
|
||||||
|
|
||||||
package ru.tech.imageresizershrinker.core.domain.image.model
|
package ru.tech.imageresizershrinker.core.domain.image.model
|
||||||
|
|
||||||
sealed class MetadataTag(
|
sealed class MetadataTag(
|
||||||
@ -164,6 +166,13 @@ sealed class MetadataTag(
|
|||||||
|
|
||||||
override fun toString(): String = key
|
override fun toString(): String = key
|
||||||
|
|
||||||
|
override fun equals(other: Any?): Boolean {
|
||||||
|
if (other !is MetadataTag) return false
|
||||||
|
return other.key == key
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun hashCode(): Int = key.hashCode()
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val TAG_BITS_PER_SAMPLE: String = "BitsPerSample"
|
const val TAG_BITS_PER_SAMPLE: String = "BitsPerSample"
|
||||||
const val TAG_COMPRESSION: String = "Compression"
|
const val TAG_COMPRESSION: String = "Compression"
|
||||||
|
Reference in New Issue
Block a user