Class TCollectors
java.lang.Object
org.teavm.classlib.java.util.stream.TCollectors
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,A, R, K> TCollector<T, A, K> collectingAndThen(TCollector<T, A, R> downstream, Function<R, K> finisher) static TCollector<CharSequence,?, String> joining()static TCollector<CharSequence,?, String> joining(CharSequence delimiter) static TCollector<CharSequence,?, String> joining(CharSequence delimiter, CharSequence prefix, CharSequence suffix) static <T,C extends Collection<T>>
TCollector<T,?, C> toCollection(Supplier<C> collectionFactory) static <T> TCollector<T,?, List<T>> toList()static <E,K, V> TCollector<E, ?, Map<K, V>> static <E,K, V> TCollector<E, ?, Map<K, V>> toMap(Function<? super E, ? extends K> keyMapper, Function<? super E, ? extends V> valueMapper, BinaryOperator<V> mergeFunction) static <E,K, V, M extends Map<K, V>>
TCollector<E,?, M> toMap(Function<? super E, ? extends K> keyMapper, Function<? super E, ? extends V> valueMapper, BinaryOperator<V> mergeFunction, Supplier<M> mapFactory) static <T> TCollector<T,?, Set<T>> toSet()static <T> TCollector<T,?, List<T>>
-
Method Details
-
toCollection
public static <T,C extends Collection<T>> TCollector<T,?, toCollectionC> (Supplier<C> collectionFactory) -
toList
-
toUnmodifiableList
-
toSet
-
joining
-
joining
-
joining
public static TCollector<CharSequence,?, joiningString> (CharSequence delimiter, CharSequence prefix, CharSequence suffix) -
toMap
public static <E,K, TCollector<E,V> ?, toMapMap<K, V>> (Function<? super E, ? extends K> keyMapper, Function<? super E, ? extends V> valueMapper) -
toMap
public static <E,K, TCollector<E,V> ?, toMapMap<K, V>> (Function<? super E, ? extends K> keyMapper, Function<? super E, ? extends V> valueMapper, BinaryOperator<V> mergeFunction) -
toMap
public static <E,K, TCollector<E,V, M extends Map<K, V>> ?, toMapM> (Function<? super E, ? extends K> keyMapper, Function<? super E, ? extends V> valueMapper, BinaryOperator<V> mergeFunction, Supplier<M> mapFactory) -
collectingAndThen
public static <T,A, TCollector<T,R, K> A, collectingAndThenK> (TCollector<T, A, R> downstream, Function<R, K> finisher)
-