public static < T , K , U > Collector < T , ? , LinkedHashMap < K , U > > toLinkedMap ( Function < ? super T , ? extends K > keyMapper , Function < ? super T , ? extends U > valueMapper ) { BinaryOperator < U > mergeFunction = throwingMerger ( ) ; return toLinkedMap ( keyMapper , valueMapper , mergeFunction ) ; }
Collects a stream to a LinkedHashMap each stream element is expected to produce map entry .