Duplicate MutableList.add docs in AbstractMutableList.add
Because the documentation inheritance doesn't work as desired here.
This commit is contained in:
@@ -22,6 +22,11 @@ expect abstract class AbstractMutableList<E> : MutableList<E> {
|
|||||||
|
|
||||||
// From MutableList
|
// From MutableList
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the specified element to the end of this list.
|
||||||
|
*
|
||||||
|
* @return `true` because the list is always modified as the result of this operation.
|
||||||
|
*/
|
||||||
override fun add(element: E): Boolean
|
override fun add(element: E): Boolean
|
||||||
override fun remove(element: E): Boolean
|
override fun remove(element: E): Boolean
|
||||||
override fun addAll(elements: Collection<E>): Boolean
|
override fun addAll(elements: Collection<E>): Boolean
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ public actual abstract class AbstractMutableList<E> protected actual constructor
|
|||||||
abstract override fun removeAt(index: Int): E
|
abstract override fun removeAt(index: Int): E
|
||||||
abstract override fun set(index: Int, element: E): E
|
abstract override fun set(index: Int, element: E): E
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the specified element to the end of this list.
|
||||||
|
*
|
||||||
|
* @return `true` because the list is always modified as the result of this operation.
|
||||||
|
*/
|
||||||
actual override fun add(element: E): Boolean {
|
actual override fun add(element: E): Boolean {
|
||||||
add(size, element)
|
add(size, element)
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user