public static <S,K>Collector<S,?,LinkedHashMap<K,S>> toLinkedDictionary(Function<? super S,? extends K> keyMapper){
  return Collectors.toMap(keyMapper,Function.identity(),StreamUtils.throwingMerger(),null);
}

public static < S , K > Collector < S , ? , LinkedHashMap < K , S > > toLinkedDictionary ( Function < ? super S , ? extends K > keyMapper ) { return Collectors . toMap ( keyMapper , Function . identity ( ) , StreamUtils . throwingMerger ( ) , null ) ; }
return a collector that creates a linkedhashmap dictionary using the given key function . this collector assumes the elements being collected are distinct .
