Module dev.metaschema.core
Package dev.metaschema.core.util
Interface CustomCollectors.DuplicateHandler<K,V>
- Type Parameters:
K- the Java type of the map's keysV- the Java type of the map's values
- Enclosing class:
- CustomCollectors
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A handler that supports resolving duplicate keys while inserting values into
a map.
-
Method Summary
-
Method Details
-
handle
The handler callback.- Parameters:
key- the duplicate keyvalue1- the first value associated with the keyvalue2- the second value associated with the key- Returns:
- the value to insert into the map
-