MutableCollectionLiveData

This is an implementation of MutableLiveData that provides a subset of MutableCollection methods which change the list content and trigger an observer notification.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun add(element: DataType): Boolean
Link copied to clipboard
Link copied to clipboard
fun clear()
Link copied to clipboard
open operator override fun contains(element: DataType): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<DataType>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in DataType>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasObservers(): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
Link copied to clipboard
open operator override fun iterator(): Iterator<DataType>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun postValue(p0: ContainerType)
Link copied to clipboard
fun remove(element: DataType): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setValue(p0: ContainerType)
Link copied to clipboard
open override fun spliterator(): Spliterator<DataType>
Link copied to clipboard
open fun stream(): Stream<DataType>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>

Properties

Link copied to clipboard
open override val size: Int

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
Link copied to clipboard
operator fun <D : DataClass<*, *, *>> Iterable<D>.get(objectId: String): D?

Gets an element from the Iterable.

Link copied to clipboard

Parses a list of Grades as AnnotatedStrings, so they get colored.

Link copied to clipboard
fun <D : DataClass<*, *, *>> Iterable<D>.has(objectId: String): Boolean

Checks if an Iterable contains a DataClass with the set objectId.

Link copied to clipboard
Link copied to clipboard