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

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