MutableTagSet

interface MutableTagSet : TagSet

Mutable set of tag names.

Implementations of this interface should be thread safe.

Author

Elizabeth Paige Harper https://github.com/Foxcapades

Since

v0.1.0

Functions

Link copied to clipboard
abstract fun add(vararg tags: String)

Adds the given tags to this MutableTagSet.

abstract fun add(tag: String)

Adds the given tag to this MutableTagSet.

abstract fun add(tags: Iterable<String>)

Adds the tags from the Iterable value to this MutableTagSet.

Link copied to clipboard
abstract operator fun contains(tag: String): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in String>)
Link copied to clipboard
abstract operator fun iterator(): Iterator<String>
Link copied to clipboard
abstract operator fun plusAssign(tag: String)

Adds the given tag to this MutableTagSet.

Link copied to clipboard
Link copied to clipboard
abstract fun stream(): Stream<String>

Returns a stream over the contents of this TagSet.

Link copied to clipboard
abstract fun toImmutable(): TagSet
Link copied to clipboard
abstract fun toList(): List<String>

Returns a read only list containing the tag names in this TagSet.

Link copied to clipboard
abstract fun toSet(): Set<String>

Returns a read only set containing the tag names in this TagSet.

Properties

Link copied to clipboard
abstract val isEmpty: Boolean

Whether this TagSet is empty.

Link copied to clipboard
abstract val isNotEmpty: Boolean

Whether this TagSet is not empty.

Link copied to clipboard
abstract val size: Int

Number of tags currently in this TagSet