mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 02:57:04 +05:30
fix(model): implement contains
operator fun for Tags
This commit is contained in:
parent
4d78a73602
commit
5c8057d71f
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ class Tags {
|
||||||
tags.remove(tag)
|
tags.remove(tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operator fun contains(tag: String): Boolean {
|
||||||
|
return tag in tags
|
||||||
|
}
|
||||||
|
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return tags.joinToString(",")
|
return tags.joinToString(",")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue