Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1005 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 1005 Bytes

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() { ... }