Uses of Interface
dev.metaschema.core.util.CustomCollectors.DuplicateHandler
Packages that use CustomCollectors.DuplicateHandler
Package
Description
Provides utility classes for common operations throughout the Metaschema
framework.
-
Uses of CustomCollectors.DuplicateHandler in dev.metaschema.core.util
Methods in dev.metaschema.core.util with parameters of type CustomCollectors.DuplicateHandlerModifier and TypeMethodDescriptionstatic <V,K> Stream<V> CustomCollectors.distinctByKey(Stream<V> stream, Function<? super V, ? extends K> keyMapper, CustomCollectors.DuplicateHandler<K, V> duplicateHander) Produce a new stream with duplicates removed based on the providedkeyMapper.CustomCollectors.toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper, CustomCollectors.DuplicateHandler<K, V> duplicateHander) Produces a map collector that uses the provided key and value mappers, and a duplicate hander to manage duplicate key insertion.CustomCollectors.toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper, CustomCollectors.DuplicateHandler<K, V> duplicateHander, Supplier<M> supplier) Produces a map collector that uses the provided key and value mappers, and a duplicate hander to manage duplicate key insertion.