public final class Combination extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<Set<T>> |
of(Collection<T> items)
Creates and returns all possible combinations of the given elements.
|
static <T> Stream<Set<T>> |
of(T... items)
Creates and returns all possible combinations of the given elements.
|
@SafeVarargs public static <T> Stream<Set<T>> of(T... items)
T - element typeitems - to combinepublic static <T> Stream<Set<T>> of(Collection<T> items)
T - element typeitems - to combineCopyright © 2022. All rights reserved.