public final class IteratorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Iterable<T> |
join(Iterable<? extends T>... collections)
Get an iterator that iterates over all the given iterables in whatever iteration order each provides.
|
static Iterator<int[]> |
permutations(int size)
Get an iterator that gives all the permutations of the numbers 0 - size.
|
static Iterable<boolean[]> |
powerset(int size)
Get an iterator that will go through the powerset of the specified size.
|
@SafeVarargs public static <T> Iterable<T> join(Iterable<? extends T>... collections)
public static Iterator<int[]> permutations(int size)
public static Iterable<boolean[]> powerset(int size)
Copyright © 2018 University of California, Santa Cruz. All rights reserved.