Clarify behavior of MutableSet.add (KT-29373)

This commit is contained in:
Ilya Gorbunov
2019-03-15 03:08:16 +03:00
parent e9ad9273b1
commit bc444df20c
@@ -276,6 +276,12 @@ public interface MutableSet<E> : Set<E>, MutableCollection<E> {
override fun iterator(): MutableIterator<E>
// Modification Operations
/**
* Adds the specified element to the set.
*
* @return `true` if the element has been added, `false` if the element is already contained in the set.
*/
override fun add(element: E): Boolean
override fun remove(element: E): Boolean