java.lang.Object
org.litebridgedb.commons.collector.MapCollector
Utility class for Collectors providing functionality to create
LinkedHashMap instances.
This class contains static methods for collecting elements of a Stream into a
LinkedHashMap. It uses user-provided mapping functions to determine
both the keys and values of the resulting map.
The class is final and contains a private constructor to prevent instantiation, as it is intended to be used solely as a utility class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,K, U> Collector <T, ?, LinkedHashMap<K, U>> toLinkedHashMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper)
-
Method Details
-
toLinkedHashMap
public static <T,K, Collector<T,U> ?, toLinkedHashMapLinkedHashMap<K, U>> (Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper)
-