Skip to content

Add standard Collection from Kotlin with elements listeners

Notifications You must be signed in to change notification settings

PeleWkurzony/ObservableCollection

Repository files navigation

Observable Collcetion

ObservableMutableList

packgage com.pelewkurzony.observable_collection.ObservableMutableList

It provides listeners for MutableList<T>

  • onChange (MutableList<Any?>, T, T) -> Unit)
  • onAdd (MutableList<Any?>, Collection<T>) -> Unit
  • onRemove (MutableList<Any?>, Collection<T>) -> Unit
  • onClear (MutableList<Any?>) -> Unit

It provides functions to change listeners in MutableList <T>

  1. OnChange
  • fun addOnChangeListener(onChange: (MutableList<Any?>, T, T) -> Unit) { ... }
  • fun removeOnChangeListener() { ... }
  1. OnAdd
  • fun addOnAddListener(onAdd: (MutableList<Any?>, Collection<T>) -> Unit) { ... }
  • fun removeOnAddListener() { ... }
  1. OnRemove
  • fun addOnRemoveListener(onRemove: (MutableList<Any?>, Collection<T?>) -> Unit) { ... }
  • fun removeOnRemoveListener() { ... }
  1. OnClear
  • fun addOnClearListener(onClear: (MutableList<Any?>) -> Unit) { ... }
  • fun removeOnClearListener() { ... }

About

Add standard Collection from Kotlin with elements listeners

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages