Class ManifoldCollectionExt
- java.lang.Object
-
- manifold.collections.extensions.java.util.Collection.ManifoldCollectionExt
-
public class ManifoldCollectionExt extends Object
-
-
Constructor Summary
Constructors Constructor Description ManifoldCollectionExt()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> booleanaddAll(Collection<E> thiz, Iterable<? extends E> elements)Adds all elements of the given Iterable to this Collectionstatic <E> booleanallMatch(Collection<E> thiz, Predicate<? super E> comparator)static <E> booleananyMatch(Collection<E> thiz, Predicate<? super E> comparator)static <E,R,A>
Rcollect(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> Stringjoin(Collection<E> thiz, CharSequence delimiter)static <E,R>
Stream<R>map(Collection<E> thiz, Function<? super E,R> mapper)static <E> Emax(Collection<E> thiz, Comparator<? super E> comparator)static <E> Emin(Collection<E> thiz, Comparator<? super E> comparator)static <E> booleannoneMatch(Collection<E> thiz, Predicate<? super E> comparator)static <E> Ereduce(Collection<E> thiz, E identity, BinaryOperator<E> accumulator)static <E> Ereduce(Collection<E> thiz, 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)
-
-
-
Method Detail
-
map
public static <E,R> Stream<R> map(Collection<E> thiz, Function<? super E,R> mapper)
-
filter
public static <E> Stream<E> filter(Collection<E> thiz, Predicate<? super E> predicate)
-
collect
public static <E,R,A> R collect(Collection<E> thiz, Collector<? super E,A,R> collector)
-
distinct
public static <E> Stream<E> distinct(Collection<E> thiz)
-
sorted
public static <E> Stream<E> sorted(Collection<E> thiz)
-
sorted
public static <E> Stream<E> sorted(Collection<E> thiz, Comparator<? super E> comparator)
-
reduce
public static <E> E reduce(Collection<E> thiz, E identity, BinaryOperator<E> accumulator)
-
anyMatch
public static <E> boolean anyMatch(Collection<E> thiz, Predicate<? super E> comparator)
-
allMatch
public static <E> boolean allMatch(Collection<E> thiz, Predicate<? super E> comparator)
-
noneMatch
public static <E> boolean noneMatch(Collection<E> thiz, Predicate<? super E> comparator)
-
reduce
public static <E> E reduce(Collection<E> thiz, BinaryOperator<E> accumulator)
-
min
public static <E> E min(Collection<E> thiz, Comparator<? super E> comparator)
-
max
public static <E> E max(Collection<E> thiz, Comparator<? super E> comparator)
-
addAll
public static <E> boolean addAll(Collection<E> thiz, Iterable<? extends E> elements)
Adds all elements of the given Iterable to this Collection
-
join
public static <E> String join(Collection<E> thiz, CharSequence delimiter)
-
toList
public static <E> List<E> toList(Collection<E> thiz)
-
toSet
public static <E> Set<E> toSet(Collection<E> thiz)
-
toMap
public static <E,K,V> Map<K,V> toMap(Collection<E> thiz, Function<? super E,K> keyMapper, Function<? super E,V> valueMapper)
-
toMap
public static <E,K> Map<K,E> toMap(Collection<E> thiz, Function<? super E,K> keyMapper)
-
groupingBy
public static <E,V> Map<V,List<E>> groupingBy(Collection<E> thiz, Function<? super E,V> valueMapper)
-
-