bind |
fun <SourceType, TargetType> MutableList<TargetType>.bind(sourceList: ObservableList<SourceType>, converter: (SourceType) -> TargetType): ListConversionListener<SourceType, TargetType> fun <SourceType, TargetType> MutableList<TargetType>.bind(sourceSet: ObservableSet<SourceType>, converter: (SourceType) -> TargetType): SetConversionListener<SourceType, TargetType>
Bind this list to the given observable list by converting them into the correct type via the given converter. Changes to the observable list are synced. fun <SourceTypeKey, SourceTypeValue, TargetType> MutableList<TargetType>.bind(sourceMap: ObservableMap<SourceTypeKey, SourceTypeValue>, converter: (SourceTypeKey, SourceTypeValue) -> TargetType): MapConversionListener<SourceTypeKey, SourceTypeValue, TargetType> |
move |
fun <T> MutableList<T>.move(item: T, newIndex: Int): Unit
Moves the given T item to the specified index |
moveAll |
fun <T> MutableList<T>.moveAll(newIndex: Int, predicate: (T) -> Boolean): Unit
Moves all items meeting a predicate to the given index |
moveAt |
fun <T> MutableList<T>.moveAt(oldIndex: Int, newIndex: Int): Unit
Moves the given item at the |
moveDown |
fun <T> MutableList<T>.moveDown(item: T): Boolean
Moves the given element T up the MutableList by an index increment
unless it is at the bottom already which will result in no movement.
Returns a fun <T> MutableList<T>.moveDown(predicate: (T) -> Boolean): <ERROR CLASS>
Moves first element T down an index that satisfies the given predicate, unless its already at the bottom |
moveDownAll |
fun <T> MutableList<T>.moveDownAll(predicate: (T) -> Boolean): <ERROR CLASS>
Moves all T elements down an index that satisfy the given predicate, unless they are already at the bottom |
moveDownAt |
fun <T> MutableList<T>.moveDownAt(index: Int): Unit
Moves the given element T up the MutableList by one increment unless it is at the bottom already which will result in no movement |
moveToBottomWhere |
fun <T> MutableList<T>.moveToBottomWhere(predicate: (T) -> Boolean): Unit |
moveToTopWhere |
fun <T> MutableList<T>.moveToTopWhere(predicate: (T) -> Boolean): Unit |
moveUp |
fun <T> MutableList<T>.moveUp(item: T): Boolean
Moves the given element T up the MutableList by an index increment
unless it is at the top already which will result in no movement.
Returns a fun <T> MutableList<T>.moveUp(predicate: (T) -> Boolean): <ERROR CLASS>
Moves first element T up an index that satisfies the given predicate, unless its already at the top |
moveUpAll |
fun <T> MutableList<T>.moveUpAll(predicate: (T) -> Boolean): <ERROR CLASS>
Moves all T elements up an index that satisfy the given predicate, unless they are already at the top |
moveUpAt |
fun <T> MutableList<T>.moveUpAt(index: Int): Unit
Moves the given element at specified index up the MutableList by one increment unless it is at the top already which will result in no movement |
swap |
fun <T> MutableList<T>.swap(indexOne: Int, indexTwo: Int): Unit
Swaps the position of two items at two respective indices fun <T> MutableList<T>.swap(itemOne: T, itemTwo: T): Unit
Swaps the index position of two items |