public class NoDuplicateMergeFunction<T>
extends java.lang.Object
implements java.util.function.BinaryOperator<T>
SortedMap.
Example:
SortedMap<String, String> sortedMap = list.stream()
.collect(Collectors.toMap(s -> "key:" + s, Function.identity(), new NoDuplicateMergeFunction<>(), TreeMap::new));
| Constructor and Description |
|---|
NoDuplicateMergeFunction() |
| Modifier and Type | Method and Description |
|---|---|
T |
apply(T o,
T o2) |