Package net.binis.codegen.collection
Class CodeMapImpl<K,V,R>
java.lang.Object
net.binis.codegen.collection.CodeMapImpl<K,V,R>
- All Implemented Interfaces:
CodeMap<K,,V, R> BaseModifier<CodeMap<K,V, R>, R>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_if(boolean condition, BiConsumer<CodeMap<K, V, R>, R> consumer, BiConsumer<CodeMap<K, V, R>, R> elseConsumer) clear()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) done()putIfAbsent(K key, V value) replaceAll(BiFunction<? super K, ? super V, ? extends V> function) protected voidprotected voidvalidateKey(K key) protected voidvalidateValue(V value)
-
Field Details
-
parent
-
map
-
keyValidator
-
valueValidator
-
-
Constructor Details
-
CodeMapImpl
-
CodeMapImpl
-
-
Method Details
-
put
-
putAll
-
remove
-
clear
-
replaceAll
- Specified by:
replaceAllin interfaceCodeMap<K,V, R>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceCodeMap<K,V, R>
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceCodeMap<K,V, R>
-
computeIfPresent
public CodeMap<K,V, computeIfPresentR> (K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresentin interfaceCodeMap<K,V, R>
-
compute
-
merge
-
done
- Specified by:
donein interfaceBaseModifier<K,V>
-
validate
-
validateKey
-
validateValue
-
_if
- Specified by:
_ifin interfaceBaseModifier<K,V>
-
_if
- Specified by:
_ifin interfaceBaseModifier<K,V>
-
_if
public CodeMap<K,V, _ifR> (boolean condition, Consumer<CodeMap<K, V, R>> consumer, Consumer<CodeMap<K, V, R>> elseConsumer) - Specified by:
_ifin interfaceBaseModifier<K,V>
-
_if
public CodeMap<K,V, _ifR> (boolean condition, BiConsumer<CodeMap<K, V, R>, R> consumer, BiConsumer<CodeMap<K, V, R>, R> elseConsumer) - Specified by:
_ifin interfaceBaseModifier<K,V>
-
_self
- Specified by:
_selfin interfaceBaseModifier<K,V>
-
_map
- Specified by:
_mapin interfaceBaseModifier<K,V>
-