MatchNamedGroupCollection

interface MatchNamedGroupCollection : MatchGroupCollection

Extends MatchGroupCollection by introducing a way to get matched groups by name, when regex supports it.

Since Kotlin

1.1

Functions

contains
Link copied to clipboard
abstract operator fun contains(element: MatchGroup?): Boolean
containsAll
Link copied to clipboard
abstract fun containsAll(elements: Collection<MatchGroup?>): Boolean
get
Link copied to clipboard
abstract operator fun get(index: Int): MatchGroup?

Returns a group with the specified index.

abstract operator fun get(name: String): MatchGroup?

Returns a named group with the specified name.

isEmpty
Link copied to clipboard
abstract fun isEmpty(): Boolean
iterator
Link copied to clipboard
abstract operator override fun iterator(): Iterator<MatchGroup?>

Properties

size
Link copied to clipboard
abstract val size: Int