Transform some builtin methods

1. CharSequence.charAt -> get
2. ML.remove(Int) -> removeAt,
3. MC.remove(Any?) -> MC.remove(E)
This commit is contained in:
Denis Zharkov
2015-10-11 12:53:40 +03:00
parent a98d1e1e55
commit 3f5498e9f5
5 changed files with 12 additions and 19 deletions
+4 -4
View File
@@ -91,7 +91,7 @@ public interface MutableCollection<E> : Collection<E>, MutableIterable<E> {
*
* @return `true` if the element has been successfully removed; `false` if it was not present in the collection.
*/
public fun remove(o: Any?): Boolean
public fun remove(o: E): Boolean
// Bulk Modification Operations
/**
@@ -181,7 +181,7 @@ public interface List<out E> : Collection<E> {
public interface MutableList<E> : List<E>, MutableCollection<E> {
// Modification Operations
override fun add(e: E): Boolean
override fun remove(o: Any?): Boolean
override fun remove(o: E): Boolean
// Bulk Modification Operations
override fun addAll(c: Collection<E>): Boolean
@@ -214,7 +214,7 @@ public interface MutableList<E> : List<E>, MutableCollection<E> {
*
* @return the element that has been removed.
*/
public fun remove(index: Int): E
public fun removeAt(index: Int): E
// List Iterators
override fun listIterator(): MutableListIterator<E>
@@ -252,7 +252,7 @@ public interface MutableSet<E> : Set<E>, MutableCollection<E> {
// Modification Operations
override fun add(e: E): Boolean
override fun remove(o: Any?): Boolean
override fun remove(o: E): Boolean
// Bulk Modification Operations
override fun addAll(c: Collection<E>): Boolean