add

fun add(item: T): Boolean

Adds an item to the observable list. Observers of the list will be notified of the change.

Return

true (as specified by MutableList.add)

Parameters

item

The item to be added to the list.


fun add(index: Int, item: T)

Adds an item at the specified index. Observers of the list will be notified of the change.

Parameters

index

The index at which the specified element is to be inserted

item

The item to be added to the list.