/**{@inheritDoc} */ @Override public int[] next() { int[] ret = next; next = findNext(); return ret; }
/** * Create a stream for the provided state. * * @param state the state to stream over */ StateStream(final State state) { this.state = state; this.stack = new CandidateStack(state.nMax()); this.next = state.nMax() == 0 || state.mMax() == 0 ? null : findNext(); // first-mapping }