public boolean hasNext() { if (found) { return true; } if (steps.isEmpty()) { return false; } nextImpl(); return found; }
public Iterator iterator() { return new GenerexIterator(automaton.getInitialState()); }
public Iterator iterator() { return new GenerexIterator(automaton.getInitialState()); }
public boolean hasNext() { if (found) { return true; } if (steps.isEmpty()) { return false; } nextImpl(); return found; }
public String next() { if (!found) { nextImpl(); } if (!found) { throw new IllegalStateException(); } found = false; return stringBuilder.toString(); }
public String next() { if (!found) { nextImpl(); } if (!found) { throw new IllegalStateException(); } found = false; return stringBuilder.toString(); }