I
- item typepublic class MapOptions<I> extends java.lang.Object implements Options<I>
Options.OptionsChangeEvent<T>
DataUnit.StateChangeEvent
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,I> |
options |
Constructor and Description |
---|
MapOptions(java.util.Map<java.lang.String,I> options) |
Modifier and Type | Method and Description |
---|---|
Subscription |
addOptionsChangeListener(java.util.function.Consumer listener) |
Subscription |
addStateChangeListener(java.util.function.Consumer listener)
Registers a new state change listener.
|
java.util.Map<java.lang.String,I> |
getItemsCollection() |
java.util.stream.Stream<I> |
getOptions() |
BindingState |
getState() |
protected java.util.Map<java.lang.String,I> options
public MapOptions(java.util.Map<java.lang.String,I> options)
public java.util.Map<java.lang.String,I> getItemsCollection()
public java.util.stream.Stream<I> getOptions()
getOptions
in interface Options<I>
public BindingState getState()
public Subscription addStateChangeListener(java.util.function.Consumer listener)
DataUnit
addStateChangeListener
in interface DataUnit
listener
- the listener to be addedpublic Subscription addOptionsChangeListener(java.util.function.Consumer listener)
addOptionsChangeListener
in interface Options<I>