|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.impl.ObservableUtils
public final class ObservableUtils
Utility methods for creating observable collection and map interface decorators.
| Method Summary | ||
|---|---|---|
static
|
observableCollection(Collection<T> collection)
Create and return a new simple observable decorator for the specified collection. |
|
static
|
observableList(List<T> list)
Create and return a new simple observable decorator for the specified list. |
|
static
|
observableMap(Map<K,V> map)
Create and return a new simple observable decorator for the specified map. |
|
static
|
observableQueue(Queue<T> queue)
Create and return a new simple observable decorator for the specified set. |
|
static
|
observableSet(Set<T> set)
Create and return a new simple observable decorator for the specified set. |
|
static
|
observableSortedMap(SortedMap<K,V> sortedMap)
Create and return a new simple observable decorator for the specified sorted map. |
|
static
|
observableSortedSet(SortedSet<T> sortedSet)
Create and return a new simple observable decorator for the specified sorted set. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> ObservableCollection<T> observableCollection(Collection<T> collection)
T - collection element typecollection - collection to decorate, must not be null
public static <T> ObservableList<T> observableList(List<T> list)
T - list element typelist - list to decorate, must not be null
public static <K,V> ObservableMap<K,V> observableMap(Map<K,V> map)
K - map key typeV - map value typemap - map to decorate, must not be null
public static <T> ObservableQueue<T> observableQueue(Queue<T> queue)
T - queue element typequeue - queue to decorate, must not be null
public static <T> ObservableSet<T> observableSet(Set<T> set)
T - set element typeset - set to decorate, must not be null
public static <K,V> ObservableSortedMap<K,V> observableSortedMap(SortedMap<K,V> sortedMap)
K - sorted map key typeV - sorted map value typesortedMap - sorted map to decorate, must not be null
public static <T> ObservableSortedSet<T> observableSortedSet(SortedSet<T> sortedSet)
T - sorted set element typesortedSet - sorted set to decorate, must not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||