Stdlib rename: List.indexOf(T), List.lastIndexOf(T), MutableCollection.removeAll(Collection<T>), MutableCollection.retainAll(Collection<T>)
This commit is contained in:
@@ -5,8 +5,8 @@ class MyList<T>: List<T> {
|
||||
override fun iterator(): Iterator<T> = throw Error()
|
||||
override fun containsAll(c: Collection<T>): Boolean = false
|
||||
override fun get(index: Int): T = throw IndexOutOfBoundsException()
|
||||
override fun indexOf(o: Any?): Int = -1
|
||||
override fun lastIndexOf(o: Any?): Int = -1
|
||||
override fun indexOf(o: T): Int = -1
|
||||
override fun lastIndexOf(o: T): Int = -1
|
||||
override fun listIterator(): ListIterator<T> = throw Error()
|
||||
override fun listIterator(index: Int): ListIterator<T> = throw Error()
|
||||
override fun subList(fromIndex: Int, toIndex: Int): List<T> = this
|
||||
|
||||
Reference in New Issue
Block a user