hasModifier

abstract fun hasModifier(modifier: KoModifier, vararg modifiers: KoModifier): Boolean

Determines whether the declaration has at least one specified modifier.

Return

true if there is a matching declaration, false otherwise.

Parameters

modifier

the modifier to check.

modifiers

the modifiers to check.


abstract fun hasModifier(modifiers: Collection<KoModifier>): Boolean

Determines whether the declaration has at least one specified modifier.

Return

true if there is a matching declaration, false otherwise.

Parameters

modifiers

the modifiers to check.