This commit is contained in:
T8RIN
2025-03-22 23:18:51 +03:00
parent 9fd22d0a29
commit 1d64c54be8

View File

@ -15,6 +15,8 @@
* 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
sealed class MetadataTag(
@ -164,6 +166,13 @@ sealed class MetadataTag(
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 {
const val TAG_BITS_PER_SAMPLE: String = "BitsPerSample"
const val TAG_COMPRESSION: String = "Compression"