public class MappedGetter<KEY,VALUE> extends Object
| Constructor | Description |
|---|---|
MappedGetter() |
| Modifier and Type | Method | Description |
|---|---|---|
VALUE |
computeIfAbsent(KEY key,
java.util.function.Function<? super KEY,? extends VALUE> mappingFunction) |
Retrieve VALUE by a given KEY
if no such entry, compute a value and insert an entry
|
void |
forEach(java.util.function.BiConsumer<? super KEY,? super VALUE> action) |
Do action for each mapped getter entry
|
String |
toString() |
public VALUE computeIfAbsent(KEY key, java.util.function.Function<? super KEY,? extends VALUE> mappingFunction)
key - connection retrieval informationmappingFunction - function to compute new valuepublic void forEach(java.util.function.BiConsumer<? super KEY,? super VALUE> action)
action - action to do on each entry
Copyright © 2008, 2017, Oracle. All rights reserved.