Top Inners Constructors Methods
org.reactfx.util

public abstract Class MapHelper<K, V>

extends Object
Class Inheritance
Known Direct Subclasses
org.reactfx.util.MapHelper.SingleEntryHelper, org.reactfx.util.MapHelper.MultiEntryHelper
Imports
java.util.HashMap, .Map, .Map.Entry, .NoSuchElementException, .Objects, java.util.function.BiConsumer, .BiFunction

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <K, V> K
chooseKey(MapHelper<K, V> mapHelper)

protected abstract K
public static <K> boolean
containsKey(MapHelper<K, ?> mapHelper, K key)

protected abstract boolean
containsKey(K key)

public static <K, V> void
forEach(MapHelper<K, V> mapHelper, BiConsumer<K, V> f)

protected abstract void
public static <K, V> V
get(MapHelper<K, V> mapHelper, K key)

protected abstract V
get(K key)

public static <K, V> boolean
isEmpty(MapHelper<K, V> mapHelper)

public static <K, V> MapHelper<K, V>
put(MapHelper<K, V> mapHelper, K key, V value)

protected abstract MapHelper<K, V>
put(K key, V value)

public static <K, V> MapHelper<K, V>
remove(MapHelper<K, V> mapHelper, K key)

protected abstract MapHelper<K, V>
remove(K key)

public static <K, V> void
replaceAll(MapHelper<K, V> mapHelper, BiFunction<? super K, ? super V, ? extends V> f)

protected abstract void
replaceAll(BiFunction<? super K, ? super V, ? extends V> f)

public static <K, V> int
size(MapHelper<K, V> mapHelper)

protected abstract int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MapHelperback to summary
private MapHelper()

Method Detail

chooseKeyback to summary
public static <K, V> K chooseKey(MapHelper<K, V> mapHelper)
chooseKeyback to summary
protected abstract K chooseKey()
containsKeyback to summary
public static <K> boolean containsKey(MapHelper<K, ?> mapHelper, K key)
containsKeyback to summary
protected abstract boolean containsKey(K key)
forEachback to summary
public static <K, V> void forEach(MapHelper<K, V> mapHelper, BiConsumer<K, V> f)
forEachback to summary
protected abstract void forEach(BiConsumer<K, V> f)
getback to summary
public static <K, V> V get(MapHelper<K, V> mapHelper, K key)
getback to summary
protected abstract V get(K key)
isEmptyback to summary
public static <K, V> boolean isEmpty(MapHelper<K, V> mapHelper)
putback to summary
public static <K, V> MapHelper<K, V> put(MapHelper<K, V> mapHelper, K key, V value)
putback to summary
protected abstract MapHelper<K, V> put(K key, V value)
removeback to summary
public static <K, V> MapHelper<K, V> remove(MapHelper<K, V> mapHelper, K key)
removeback to summary
protected abstract MapHelper<K, V> remove(K key)
replaceAllback to summary
public static <K, V> void replaceAll(MapHelper<K, V> mapHelper, BiFunction<? super K, ? super V, ? extends V> f)
replaceAllback to summary
protected abstract void replaceAll(BiFunction<? super K, ? super V, ? extends V> f)
sizeback to summary
public static <K, V> int size(MapHelper<K, V> mapHelper)
sizeback to summary
protected abstract int size()
org.reactfx.util back to summary

private Class MapHelper.MultiEntryHelper<K, V>

extends MapHelper<K, V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<K, V>

Constructor Summary

AccessConstructor and Description
public
MultiEntryHelper(K k1, V v1, K k2, V v2)

Method Summary

Modifier and TypeMethod and Description
protected K
protected boolean
protected void
protected V
get(K key)

Implements abstract org.reactfx.util.MapHelper.get.

protected MapHelper<K, V>
put(K key, V value)

Implements abstract org.reactfx.util.MapHelper.put.

protected MapHelper<K, V>
remove(K key)

Implements abstract org.reactfx.util.MapHelper.remove.

protected void
replaceAll(BiFunction<? super K, ? super V, ? extends V> f)

Implements abstract org.reactfx.util.MapHelper.replaceAll.

protected int
size()

Implements abstract org.reactfx.util.MapHelper.size.

Inherited from org.reactfx.util.MapHelper:
chooseKeycontainsKeyforEachgetisEmptyputremovereplaceAllsize

Field Detail

entriesback to summary
private final Map<K, V> entries

Constructor Detail

MultiEntryHelperback to summary
public MultiEntryHelper(K k1, V v1, K k2, V v2)

Method Detail

chooseKeyback to summary
protected K chooseKey()

Implements abstract org.reactfx.util.MapHelper.chooseKey.

Annotations
@Override
containsKeyback to summary
protected boolean containsKey(K key)

Implements abstract org.reactfx.util.MapHelper.containsKey.

Annotations
@Override
forEachback to summary
protected void forEach(BiConsumer<K, V> f)

Implements abstract org.reactfx.util.MapHelper.forEach.

Annotations
@Override
getback to summary
protected V get(K key)

Implements abstract org.reactfx.util.MapHelper.get.

Annotations
@Override
putback to summary
protected MapHelper<K, V> put(K key, V value)

Implements abstract org.reactfx.util.MapHelper.put.

Annotations
@Override
removeback to summary
protected MapHelper<K, V> remove(K key)

Implements abstract org.reactfx.util.MapHelper.remove.

Annotations
@Override
replaceAllback to summary
protected void replaceAll(BiFunction<? super K, ? super V, ? extends V> f)

Implements abstract org.reactfx.util.MapHelper.replaceAll.

Annotations
@Override
sizeback to summary
protected int size()

Implements abstract org.reactfx.util.MapHelper.size.

Annotations
@Override
org.reactfx.util back to summary

private Class MapHelper.SingleEntryHelper<K, V>

extends MapHelper<K, V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final K
private V

Constructor Summary

AccessConstructor and Description
public
SingleEntryHelper(K key, V value)

Method Summary

Modifier and TypeMethod and Description
protected K
protected boolean
protected void
protected V
get(K key)

Implements abstract org.reactfx.util.MapHelper.get.

protected MapHelper<K, V>
put(K key, V value)

Implements abstract org.reactfx.util.MapHelper.put.

protected MapHelper<K, V>
remove(K key)

Implements abstract org.reactfx.util.MapHelper.remove.

protected void
replaceAll(BiFunction<? super K, ? super V, ? extends V> f)

Implements abstract org.reactfx.util.MapHelper.replaceAll.

protected int
size()

Implements abstract org.reactfx.util.MapHelper.size.

Inherited from org.reactfx.util.MapHelper:
chooseKeycontainsKeyforEachgetisEmptyputremovereplaceAllsize

Field Detail

keyback to summary
private final K key
valueback to summary
private V value

Constructor Detail

SingleEntryHelperback to summary
public SingleEntryHelper(K key, V value)

Method Detail

chooseKeyback to summary
protected K chooseKey()

Implements abstract org.reactfx.util.MapHelper.chooseKey.

Annotations
@Override
containsKeyback to summary
protected boolean containsKey(K key)

Implements abstract org.reactfx.util.MapHelper.containsKey.

Annotations
@Override
forEachback to summary
protected void forEach(BiConsumer<K, V> f)

Implements abstract org.reactfx.util.MapHelper.forEach.

Annotations
@Override
getback to summary
protected V get(K key)

Implements abstract org.reactfx.util.MapHelper.get.

Annotations
@Override
putback to summary
protected MapHelper<K, V> put(K key, V value)

Implements abstract org.reactfx.util.MapHelper.put.

Annotations
@Override
removeback to summary
protected MapHelper<K, V> remove(K key)

Implements abstract org.reactfx.util.MapHelper.remove.

Annotations
@Override
replaceAllback to summary
protected void replaceAll(BiFunction<? super K, ? super V, ? extends V> f)

Implements abstract org.reactfx.util.MapHelper.replaceAll.

Annotations
@Override
sizeback to summary
protected int size()

Implements abstract org.reactfx.util.MapHelper.size.

Annotations
@Override