Cleanup: rename parameters to match overriden method (in private implementations).
Remove some redundancy.
This commit is contained in:
@@ -201,8 +201,8 @@ private fun RegExp.findNext(input: String, from: Int): MatchResult? {
|
||||
override val size: Int get() = match.size
|
||||
override fun isEmpty(): Boolean = size == 0
|
||||
|
||||
override fun contains(o: MatchGroup?): Boolean = this.any { it == o }
|
||||
override fun containsAll(c: Collection<MatchGroup?>): Boolean = c.all({contains(it)})
|
||||
override fun contains(element: MatchGroup?): Boolean = this.any { it == element }
|
||||
override fun containsAll(elements: Collection<MatchGroup?>): Boolean = elements.all { contains(it) }
|
||||
|
||||
override fun iterator(): Iterator<MatchGroup?> = indices.asSequence().map { this[it] }.iterator()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user