Skip to content

Instantly share code, notes, and snippets.

@radityagumay
Last active January 15, 2018 00:59
Show Gist options
  • Save radityagumay/a64a8f97f0c8534f5ce4cd5f80066232 to your computer and use it in GitHub Desktop.
Save radityagumay/a64a8f97f0c8534f5ce4cd5f80066232 to your computer and use it in GitHub Desktop.
interface Universal<in T> {
fun addAll(items: Collection<T>)
fun add(item: T)
fun update(item: T)
fun updateRange(vararg items: T)
fun remove(item: T, position: Int)
fun removeRange(vararg items: T)
fun clearAndAddAll(collection: Collection<T>)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment