public class MapBinder<K,V> extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
MapBinder.BinderBuilder<K,V> |
| Modifier and Type | Field and Description |
|---|---|
protected Map<K,TreeTableNodeBasic> |
cache |
protected EventMap<K,V> |
map |
protected CloseableSet |
mapListenersShutdown |
protected TreeTableNodeBasic |
node |
protected Func2<TreeTableNodeBasic,K,V> |
nodeBuilder |
protected Func3<Object,TreeTableNodeBasic,K,V> |
nodeUpdater |
| Constructor and Description |
|---|
MapBinder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearNodes() |
void |
close() |
static <K,V> MapBinder.BinderBuilder<K,V> |
create() |
protected TreeTableNodeBasic |
createCachedNode(K key,
V value) |
protected TreeTableNodeBasic |
createOrGetNode(K key) |
protected TreeTableNodeBasic |
createOrGetNode(K key,
V value) |
protected Map<K,TreeTableNodeBasic> |
getCache() |
boolean |
isListen() |
void |
listen() |
protected void |
onMapDeleted(K key,
V value) |
protected void |
onMapInserted(K key,
V value) |
protected void |
onMapUpdated(K key,
V value) |
protected TreeTableNodeBasic |
putNode(K key,
V value) |
void |
refresh() |
protected TreeTableNodeBasic |
removeNode(K key) |
protected TreeTableNodeBasic |
updateNode(K key,
V value) |
protected TreeTableNodeBasic node
protected Func2<TreeTableNodeBasic,K,V> nodeBuilder
protected Func3<Object,TreeTableNodeBasic,K,V> nodeUpdater
protected volatile Map<K,TreeTableNodeBasic> cache
protected final CloseableSet mapListenersShutdown
public static <K,V> MapBinder.BinderBuilder<K,V> create()
protected Map<K,TreeTableNodeBasic> getCache()
protected TreeTableNodeBasic createCachedNode(K key, V value)
protected TreeTableNodeBasic createOrGetNode(K key, V value)
protected TreeTableNodeBasic createOrGetNode(K key)
protected TreeTableNodeBasic putNode(K key, V value)
protected TreeTableNodeBasic updateNode(K key, V value)
protected TreeTableNodeBasic removeNode(K key)
protected void clearNodes()
public void refresh()
public boolean isListen()
public void listen()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2018. All rights reserved.