Fix indent in built-in sources
This commit is contained in:
@@ -17,149 +17,149 @@
|
||||
package kotlin
|
||||
|
||||
public trait Iterable<out T> {
|
||||
public fun iterator() : Iterator<T>
|
||||
public fun iterator(): Iterator<T>
|
||||
}
|
||||
|
||||
public trait MutableIterable<out T> : Iterable<T> {
|
||||
override fun iterator() : MutableIterator<T>
|
||||
override fun iterator(): MutableIterator<T>
|
||||
}
|
||||
|
||||
public trait Collection<out E> : Iterable<E> {
|
||||
// Query Operations
|
||||
public fun size() : Int
|
||||
public fun isEmpty() : Boolean
|
||||
public fun contains(o : Any?) : Boolean
|
||||
override fun iterator() : Iterator<E>
|
||||
public fun size(): Int
|
||||
public fun isEmpty(): Boolean
|
||||
public fun contains(o: Any?): Boolean
|
||||
override fun iterator(): Iterator<E>
|
||||
|
||||
// Bulk Operations
|
||||
public fun containsAll(c : Collection<Any?>) : Boolean
|
||||
public fun containsAll(c: Collection<Any?>): Boolean
|
||||
}
|
||||
|
||||
public trait MutableCollection<E> : Collection<E>, MutableIterable<E> {
|
||||
// Query Operations
|
||||
override fun iterator() : MutableIterator<E>
|
||||
override fun iterator(): MutableIterator<E>
|
||||
|
||||
// Modification Operations
|
||||
public fun add(e : E) : Boolean
|
||||
public fun remove(o : Any?) : Boolean
|
||||
public fun add(e: E): Boolean
|
||||
public fun remove(o: Any?): Boolean
|
||||
|
||||
// Bulk Modification Operations
|
||||
public fun addAll(c : Collection<E>) : Boolean
|
||||
public fun removeAll(c : Collection<Any?>) : Boolean
|
||||
public fun retainAll(c : Collection<Any?>) : Boolean
|
||||
public fun clear() : Unit
|
||||
public fun addAll(c: Collection<E>): Boolean
|
||||
public fun removeAll(c: Collection<Any?>): Boolean
|
||||
public fun retainAll(c: Collection<Any?>): Boolean
|
||||
public fun clear(): Unit
|
||||
}
|
||||
|
||||
public trait List<out E> : Collection<E> {
|
||||
// Query Operations
|
||||
override fun size() : Int
|
||||
override fun isEmpty() : Boolean
|
||||
override fun contains(o : Any?) : Boolean
|
||||
override fun iterator() : Iterator<E>
|
||||
override fun size(): Int
|
||||
override fun isEmpty(): Boolean
|
||||
override fun contains(o: Any?): Boolean
|
||||
override fun iterator(): Iterator<E>
|
||||
|
||||
// Bulk Operations
|
||||
override fun containsAll(c : Collection<Any?>) : Boolean
|
||||
override fun containsAll(c: Collection<Any?>): Boolean
|
||||
|
||||
// Positional Access Operations
|
||||
public fun get(index : Int) : E
|
||||
public fun get(index: Int): E
|
||||
|
||||
// Search Operations
|
||||
public fun indexOf(o : Any?) : Int
|
||||
public fun lastIndexOf(o : Any?) : Int
|
||||
public fun indexOf(o: Any?): Int
|
||||
public fun lastIndexOf(o: Any?): Int
|
||||
|
||||
// List Iterators
|
||||
public fun listIterator() : ListIterator<E>
|
||||
public fun listIterator(index : Int) : ListIterator<E>
|
||||
public fun listIterator(): ListIterator<E>
|
||||
public fun listIterator(index: Int): ListIterator<E>
|
||||
|
||||
// View
|
||||
public fun subList(fromIndex : Int, toIndex : Int) : List<E>
|
||||
public fun subList(fromIndex: Int, toIndex: Int): List<E>
|
||||
}
|
||||
|
||||
public trait MutableList<E> : List<E>, MutableCollection<E> {
|
||||
// Modification Operations
|
||||
override fun add(e: E) : Boolean
|
||||
override fun remove(o : Any?) : Boolean
|
||||
override fun add(e: E): Boolean
|
||||
override fun remove(o: Any?): Boolean
|
||||
|
||||
// Bulk Modification Operations
|
||||
override fun addAll(c : Collection<E>) : Boolean
|
||||
public fun addAll(index : Int, c : Collection<E>) : Boolean
|
||||
override fun removeAll(c : Collection<Any?>) : Boolean
|
||||
override fun retainAll(c : Collection<Any?>) : Boolean
|
||||
override fun clear() : Unit
|
||||
override fun addAll(c: Collection<E>): Boolean
|
||||
public fun addAll(index: Int, c: Collection<E>): Boolean
|
||||
override fun removeAll(c: Collection<Any?>): Boolean
|
||||
override fun retainAll(c: Collection<Any?>): Boolean
|
||||
override fun clear(): Unit
|
||||
|
||||
// Positional Access Operations
|
||||
public fun set(index : Int, element : E) : E
|
||||
public fun add(index : Int, element : E) : Unit
|
||||
public fun remove(index : Int) : E
|
||||
public fun set(index: Int, element: E): E
|
||||
public fun add(index: Int, element: E): Unit
|
||||
public fun remove(index: Int): E
|
||||
|
||||
// List Iterators
|
||||
override fun listIterator() : MutableListIterator<E>
|
||||
override fun listIterator(index : Int) : MutableListIterator<E>
|
||||
override fun listIterator(): MutableListIterator<E>
|
||||
override fun listIterator(index: Int): MutableListIterator<E>
|
||||
|
||||
// View
|
||||
override fun subList(fromIndex : Int, toIndex : Int) : MutableList<E>
|
||||
override fun subList(fromIndex: Int, toIndex: Int): MutableList<E>
|
||||
}
|
||||
|
||||
public trait Set<out E> : Collection<E> {
|
||||
// Query Operations
|
||||
override fun size() : Int
|
||||
override fun isEmpty() : Boolean
|
||||
override fun contains(o : Any?) : Boolean
|
||||
override fun iterator() : Iterator<E>
|
||||
override fun size(): Int
|
||||
override fun isEmpty(): Boolean
|
||||
override fun contains(o: Any?): Boolean
|
||||
override fun iterator(): Iterator<E>
|
||||
|
||||
// Bulk Operations
|
||||
override fun containsAll(c : Collection<Any?>) : Boolean
|
||||
override fun containsAll(c: Collection<Any?>): Boolean
|
||||
}
|
||||
|
||||
public trait MutableSet<E> : Set<E>, MutableCollection<E> {
|
||||
// Query Operations
|
||||
override fun iterator() : MutableIterator<E>
|
||||
override fun iterator(): MutableIterator<E>
|
||||
|
||||
// Modification Operations
|
||||
override fun add(e: E) : Boolean
|
||||
override fun remove(o : Any?) : Boolean
|
||||
override fun add(e: E): Boolean
|
||||
override fun remove(o: Any?): Boolean
|
||||
|
||||
// Bulk Modification Operations
|
||||
override fun addAll(c : Collection<E>) : Boolean
|
||||
override fun removeAll(c : Collection<Any?>) : Boolean
|
||||
override fun retainAll(c : Collection<Any?>) : Boolean
|
||||
override fun clear() : Unit
|
||||
override fun addAll(c: Collection<E>): Boolean
|
||||
override fun removeAll(c: Collection<Any?>): Boolean
|
||||
override fun retainAll(c: Collection<Any?>): Boolean
|
||||
override fun clear(): Unit
|
||||
}
|
||||
|
||||
public trait Map<K, out V> {
|
||||
// Query Operations
|
||||
public fun size() : Int
|
||||
public fun isEmpty() : Boolean
|
||||
public fun containsKey(key : Any?) : Boolean
|
||||
public fun containsValue(value : Any?) : Boolean
|
||||
public fun get(key : Any?) : V?
|
||||
public fun size(): Int
|
||||
public fun isEmpty(): Boolean
|
||||
public fun containsKey(key: Any?): Boolean
|
||||
public fun containsValue(value: Any?): Boolean
|
||||
public fun get(key: Any?): V?
|
||||
|
||||
// Views
|
||||
public fun keySet() : Set<K>
|
||||
public fun values() : Collection<V>
|
||||
public fun entrySet() : Set<Map.Entry<K, V>>
|
||||
public fun keySet(): Set<K>
|
||||
public fun values(): Collection<V>
|
||||
public fun entrySet(): Set<Map.Entry<K, V>>
|
||||
|
||||
public trait Entry<out K, out V> {
|
||||
public fun getKey() : K
|
||||
public fun getValue() : V
|
||||
public fun getKey(): K
|
||||
public fun getValue(): V
|
||||
}
|
||||
}
|
||||
|
||||
public trait MutableMap<K, V> : Map<K, V> {
|
||||
// Modification Operations
|
||||
public fun put(key : K, value : V) : V?
|
||||
public fun remove(key : Any?) : V?
|
||||
public fun put(key: K, value: V): V?
|
||||
public fun remove(key: Any?): V?
|
||||
|
||||
// Bulk Modification Operations
|
||||
public fun putAll(m : Map<out K, V>) : Unit
|
||||
public fun clear() : Unit
|
||||
public fun putAll(m: Map<out K, V>): Unit
|
||||
public fun clear(): Unit
|
||||
|
||||
// Views
|
||||
override fun keySet() : MutableSet<K>
|
||||
override fun values() : MutableCollection<V>
|
||||
override fun entrySet() : MutableSet<MutableMap.MutableEntry<K, V>>
|
||||
override fun keySet(): MutableSet<K>
|
||||
override fun values(): MutableCollection<V>
|
||||
override fun entrySet(): MutableSet<MutableMap.MutableEntry<K, V>>
|
||||
|
||||
public trait MutableEntry<K,V> : Map.Entry<K, V> {
|
||||
public fun setValue(value : V) : V
|
||||
public trait MutableEntry<K,V>: Map.Entry<K, V> {
|
||||
public fun setValue(value: V): V
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user