Package net.apartium.cocoabeans.state
Interface ListObservable<E>
- Type Parameters:
E- element type
- All Superinterfaces:
CollectionObservable<E,,List<E>> Observable<List<E>>
@AvailableSince("0.0.39")
public interface ListObservable<E>
extends CollectionObservable<E,List<E>>
Represents an observable containing multiple values
- See Also:
-
Method Summary
Methods inherited from interface net.apartium.cocoabeans.state.CollectionObservable
add, addAll, clear, remove, removeAll, removeIf, retainAll, sizeMethods inherited from interface net.apartium.cocoabeans.state.Observable
get, map, observe, removeObserver, watch
-
Method Details
-
add
Add an element at specified index- Parameters:
index- indexelement- element- See Also:
-
remove
Remove an element at specified index- Parameters:
index- index- Returns:
- removed element
- See Also:
-
sort
Sort list elements by given comparator- Parameters:
comparator- comparator- See Also:
-