/** * Creates linked hash map from simple entries. * * @param <K> key type * @param <U> value type * @param entries entries array * @return linked hash map from simple entries */ public static <K, U> LinkedHashMap<K, U> createLinkedMap(SimpleEntry<K, U>... entries) { return Stream.of(entries).collect(entryToLinkedMap()); }