Cleanup: rename parameters to match overriden method (in private implementations).

Remove some redundancy.
This commit is contained in:
Ilya Gorbunov
2016-02-12 23:18:47 +03:00
parent b19c0363fd
commit f025a3b8c4
6 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -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()