Revert 'isEmpty' transformation

This commit is contained in:
Denis Zharkov
2015-10-13 20:49:31 +03:00
committed by Mikhail Glukhikh
parent 17c906658d
commit 6322198a11
71 changed files with 127 additions and 156 deletions
+4 -4
View File
@@ -54,7 +54,7 @@ public interface Collection<out E> : Iterable<E> {
/**
* Returns `true` if the collection is empty (contains no elements), `false` otherwise.
*/
public val isEmpty: Boolean
public fun isEmpty(): Boolean
/**
* Checks if the specified element is contained in this collection.
@@ -129,7 +129,7 @@ public interface MutableCollection<E> : Collection<E>, MutableIterable<E> {
public interface List<out E> : Collection<E> {
// Query Operations
override val size: Int
override val isEmpty: Boolean
override fun isEmpty(): Boolean
override fun contains(o: @UnsafeVariance E): Boolean
override fun iterator(): Iterator<E>
@@ -233,7 +233,7 @@ public interface MutableList<E> : List<E>, MutableCollection<E> {
public interface Set<out E> : Collection<E> {
// Query Operations
override val size: Int
override val isEmpty: Boolean
override fun isEmpty(): Boolean
override fun contains(o: @UnsafeVariance E): Boolean
override fun iterator(): Iterator<E>
@@ -279,7 +279,7 @@ public interface Map<K, out V> {
/**
* Returns `true` if the map is empty (contains no elements), `false` otherwise.
*/
public val isEmpty: Boolean
public fun isEmpty(): Boolean
/**
* Returns `true` if the map contains the specified [key].