K
- the key type of the input and output entriesV1
- the value type of the input entryV2
- the value type of the output entry@FunctionalInterface public static interface Maps.EntryTransformer<K,V1,V2>
Maps.transformEntries(Map, EntryTransformer)
.Modifier and Type | Method and Description |
---|---|
V2 |
transformEntry(K key,
V1 value)
Determines an output value based on a key-value pair.
|
V2 transformEntry(@Nullable K key, @Nullable V1 value)
Objects.equal
(k1, k2) &&
Objects.equal(java.lang.Object, java.lang.Object)
(v1, v2)
implies that Objects.equal(transformer.transform(k1, v1),
transformer.transform(k2, v2))
.
NullPointerException
- if the key or value is null and this
transformer does not accept null argumentsCopyright © 2010-2017. All Rights Reserved.