/** * Creates audio track. * * @param channels track channels * @return audio track */ private static LinkedHashMap<String, ChannelType> createTrack(Channel... channels) { return StreamUtil.createLinkedMap(channels); }
/** * 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()); }