stream_subscriber library
Observable objects for asynchronously listening for changes to values and collections, with a mixin to easily manage streams on any class.
Classes
-
CollectionChangeEvent<
K, V> -
An event containing a single change made to a StreamCollection, returned
by a collection's change listeners and
onChange
parameter. -
CollectionEvent<
K, V> -
An event containing changes made to a StreamCollection, returned
by a collection's event listeners and
onEvent
parameter. -
StreamCollection<
C, K, V> - The base class for an observable collection of elements (list, map, or set.)
-
StreamEventProvider<
T, E> - Base class implemented by classes that provide an event listener.
-
StreamList<
E> - StreamList wraps a List and adds functionality to each relevant method to notify any subscribed listeners of changes made to the list.
-
StreamMap<
K, V> - StreamMap wraps a Map and adds functionality to each relevant method to notify any subscribed listeners of changes made to the map.
-
StreamSet<
E> - StreamSet wraps a Set and adds functionality to each relevant method to notify any subscribed listeners of changes made to the set.
-
StreamValue<
T> - A observable object that notifies its subscribers when its value has been modified.
Enums
- CollectionEventType
- The type of event made to a StreamCollection.
Mixins
-
StreamSubscriber<
T> - A minimal set of methods to add and manage StreamSubscriptions on any class.