Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created April 1, 2018 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajjadyousefnia/4877b0a2d4a5232d1aaa0d70079c2675 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/4877b0a2d4a5232d1aaa0d70079c2675 to your computer and use it in GitHub Desktop.
public interface MutableCollection<E> : Collection<E>, MutableIterable<E> {
override fun iterator(): MutableIterator<E>
public fun add(element: E): Boolean
public fun remove(element: E): Boolean
public fun addAll(elements: Collection<E>): Boolean
public fun removeAll(elements: Collection<E>): Boolean
public fun retainAll(elements: Collection<E>): Boolean
public fun clear(): Unit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment