public class ManifoldCollectionExt extends Object
Constructor and Description |
---|
ManifoldCollectionExt() |
Modifier and Type | Method and Description |
---|---|
static <E> boolean |
addAll(Collection<E> thiz,
Iterable<? extends E> elements)
Adds all elements of the given Iterable to this Collection
|
static <E> boolean |
allMatch(Collection<E> thiz,
Predicate<? super E> comparator) |
static <E> boolean |
anyMatch(Collection<E> thiz,
Predicate<? super E> comparator) |
static <E,R,A> R |
collect(Collection<E> thiz,
Collector<? super E,A,R> collector) |
static <E> Stream<E> |
distinct(Collection<E> thiz) |
static <E> Stream<E> |
filter(Collection<E> thiz,
Predicate<? super E> predicate) |
static <E,V> Map<V,List<E>> |
groupingBy(Collection<E> thiz,
Function<? super E,V> valueMapper) |
static <E> String |
join(Collection<E> thiz,
CharSequence delimiter) |
static <E,R> Stream<R> |
map(Collection<E> thiz,
Function<? super E,R> mapper) |
static <E> E |
max(Collection<E> thiz,
Comparator<? super E> comparator) |
static <E> E |
min(Collection<E> thiz,
Comparator<? super E> comparator) |
static <E> boolean |
noneMatch(Collection<E> thiz,
Predicate<? super E> comparator) |
static <E> E |
reduce(Collection<E> thiz,
BinaryOperator<E> accumulator) |
static <E> E |
reduce(Collection<E> thiz,
E identity,
BinaryOperator<E> accumulator) |
static <E> Stream<E> |
sorted(Collection<E> thiz) |
static <E> Stream<E> |
sorted(Collection<E> thiz,
Comparator<? super E> comparator) |
static <E> List<E> |
toList(Collection<E> thiz) |
static <E,K> Map<K,E> |
toMap(Collection<E> thiz,
Function<? super E,K> keyMapper) |
static <E,K,V> Map<K,V> |
toMap(Collection<E> thiz,
Function<? super E,K> keyMapper,
Function<? super E,V> valueMapper) |
static <E> Set<E> |
toSet(Collection<E> thiz) |
public static <E,R> Stream<R> map(Collection<E> thiz, Function<? super E,R> mapper)
public static <E> Stream<E> filter(Collection<E> thiz, Predicate<? super E> predicate)
public static <E,R,A> R collect(Collection<E> thiz, Collector<? super E,A,R> collector)
public static <E> Stream<E> distinct(Collection<E> thiz)
public static <E> Stream<E> sorted(Collection<E> thiz)
public static <E> Stream<E> sorted(Collection<E> thiz, Comparator<? super E> comparator)
public static <E> E reduce(Collection<E> thiz, E identity, BinaryOperator<E> accumulator)
public static <E> boolean anyMatch(Collection<E> thiz, Predicate<? super E> comparator)
public static <E> boolean allMatch(Collection<E> thiz, Predicate<? super E> comparator)
public static <E> boolean noneMatch(Collection<E> thiz, Predicate<? super E> comparator)
public static <E> E reduce(Collection<E> thiz, BinaryOperator<E> accumulator)
public static <E> E min(Collection<E> thiz, Comparator<? super E> comparator)
public static <E> E max(Collection<E> thiz, Comparator<? super E> comparator)
public static <E> boolean addAll(Collection<E> thiz, Iterable<? extends E> elements)
public static <E> String join(Collection<E> thiz, CharSequence delimiter)
public static <E> List<E> toList(Collection<E> thiz)
public static <E> Set<E> toSet(Collection<E> thiz)
public static <E,K,V> Map<K,V> toMap(Collection<E> thiz, Function<? super E,K> keyMapper, Function<? super E,V> valueMapper)
public static <E,K> Map<K,E> toMap(Collection<E> thiz, Function<? super E,K> keyMapper)
public static <E,V> Map<V,List<E>> groupingBy(Collection<E> thiz, Function<? super E,V> valueMapper)
Copyright © 2024. All rights reserved.