Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created March 31, 2018 10:11
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/ca40c05af6e6ba345b171cd145201566 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/ca40c05af6e6ba345b171cd145201566 to your computer and use it in GitHub Desktop.
public interface Collection<out E> : Iterable<E> {
public val size: Int
public fun isEmpty(): Boolean
public operator fun contains(element: @UnsafeVariance E): Boolean
override fun iterator(): Iterator<E>
public fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment