T
- The List
element type.public interface Permutations<T> extends Combinations<T>
Combinations.SpliteratorSupplier<T>
Stream.Builder<T>
Modifier and Type | Method and Description |
---|---|
static <T> Stream<List<T>> |
of(Collection<T> collection)
Method to get the
Stream of permutations. |
static <T> Stream<List<T>> |
of(Predicate<List<T>> predicate,
Collection<T> collection)
Method to get the
Stream of permutations. |
of, of
allMatch, anyMatch, builder, collect, collect, concat, count, distinct, empty, filter, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, generate, iterate, limit, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, of, peek, reduce, reduce, reduce, skip, sorted, sorted, toArray, toArray
close, isParallel, iterator, onClose, parallel, sequential, spliterator, unordered
static <T> Stream<List<T>> of(Collection<T> collection)
Stream
of permutations.of
in interface Stream<List<T>>
T
- The Collection
element type.collection
- The Collection
of elements to
permute.Stream
of permutations.static <T> Stream<List<T>> of(Predicate<List<T>> predicate, Collection<T> collection)
Stream
of permutations.T
- The Collection
element type.predicate
- The optional Predicate
(may be
null
) specifying prerequisite
requirement(s) for the combinations. Any
path that does not match will be pruned.collection
- The Collection
of elements to
permute.Stream
of permutations.Copyright © 2015–2020 Allen D. Ball. All rights reserved.