public class MappedGetter<KEY,VALUE> extends Object
Constructor and Description |
---|
MappedGetter() |
Modifier and Type | Method and 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
|
String |
toString() |
public VALUE computeIfAbsent(KEY key, java.util.function.Function<? super KEY,? extends VALUE> mappingFunction)
key
- connection retrieval informationmappingFunction
- function to compute new value
Copyright © 2008, 2017, Oracle. All rights reserved.