Class TCollectors
java.lang.Object
org.teavm.classlib.java.util.stream.TCollectors
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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()
-
Method Details
-
toCollection
public static <T, C extends Collection<T>> TCollector<T,?,C> toCollection(Supplier<C> collectionFactory) -
toList
-
toSet
-
joining
-
joining
-
joining
public static TCollector<CharSequence,?,String> joining(CharSequence delimiter, CharSequence prefix, CharSequence suffix) -
toMap
public static <E, K, V> TCollector<E,?,Map<K,V>> toMap(Function<? super E,? extends K> keyMapper, Function<? super E,? extends V> valueMapper) -
toMap
public 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) -
toMap
public 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)
-