observableSetOfNotNull

fun <T : Any> observableSetOfNotNull(element: T?): ObservableSet<T>

Returns a new read-only ObservableSet either of single given element, if it is not null, or empty list if the element is null.

See also


fun <T : Any> observableSetOfNotNull(vararg elements: T?): ObservableSet<T>

Returns a new read-only ObservableSet only of those given elements, that are not null.

See also