Minor: collection docs formatting

This commit is contained in:
Ilya Gorbunov
2019-03-15 03:10:33 +03:00
parent bc444df20c
commit b0a234ec74
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -134,8 +134,8 @@ public interface MutableCollection<E> : Collection<E>, MutableIterable<E> {
*/ */
public interface List<out E> : Collection<E> { public interface List<out E> : Collection<E> {
// Query Operations // Query Operations
override val size: Int
override val size: Int
override fun isEmpty(): Boolean override fun isEmpty(): Boolean
override fun contains(element: @UnsafeVariance E): Boolean override fun contains(element: @UnsafeVariance E): Boolean
override fun iterator(): Iterator<E> override fun iterator(): Iterator<E>
@@ -256,8 +256,8 @@ public interface MutableList<E> : List<E>, MutableCollection<E> {
*/ */
public interface Set<out E> : Collection<E> { public interface Set<out E> : Collection<E> {
// Query Operations // Query Operations
override val size: Int
override val size: Int
override fun isEmpty(): Boolean override fun isEmpty(): Boolean
override fun contains(element: @UnsafeVariance E): Boolean override fun contains(element: @UnsafeVariance E): Boolean
override fun iterator(): Iterator<E> override fun iterator(): Iterator<E>
@@ -287,8 +287,8 @@ public interface MutableSet<E> : Set<E>, MutableCollection<E> {
override fun remove(element: E): Boolean override fun remove(element: E): Boolean
// Bulk Modification Operations // Bulk Modification Operations
override fun addAll(elements: Collection<E>): Boolean
override fun addAll(elements: Collection<E>): Boolean
override fun removeAll(elements: Collection<E>): Boolean override fun removeAll(elements: Collection<E>): Boolean
override fun retainAll(elements: Collection<E>): Boolean override fun retainAll(elements: Collection<E>): Boolean
override fun clear(): Unit override fun clear(): Unit
@@ -14,7 +14,7 @@ public actual abstract class AbstractMutableSet<E> protected actual constructor(
/** /**
* Compares this set with another set instance with the unordered structural equality. * Compares this set with another set instance with the unordered structural equality.
* *
* @return true, if [other] instance is a [Set] of the same size, all elements of which are contained in this set. * @return `true`, if [other] instance is a [Set] of the same size, all elements of which are contained in this set.
*/ */
override fun equals(other: Any?): Boolean { override fun equals(other: Any?): Boolean {
if (other === this) return true if (other === this) return true