K
- the type of key in the mapVI
- the "input" value typeVO
- the "output" value typepublic static class TransformingMap.ValuesOnly<K,VI,VO> extends TransformingMap<K,VI,K,VO>
TransformingMap
that only transforms map values, not keys. Due to this constraint,
it provides more efficient implementations for some methods.TransformingMap.Bidi<KI,VI,KO,VO>, TransformingMap.ReadOnly<KI,VI,KO,VO>, TransformingMap.ValuesOnly<K,VI,VO>
Constructor and Description |
---|
ValuesOnly(Map<K,VI> internal,
BiFunction<? super K,? super VI,? extends VO> fn)
Constructs a new map that wraps the given map, transforming its values using the given
function.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<K,VO>> |
entrySet() |
VO |
get(Object key) |
Set<K> |
keySet() |
VO |
remove(Object key) |
clear, containsValue, equals, hashCode, internal, isEmpty, keyFunction, put, putAll, size, toString, transformingKeys, transformingValues, transformingValues, valueFunction, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll