@Test public void Next() { Iterator<String> it = new VarNameIterator(); for (int i = 0; i < 100; i++) { System.out.println(it.next()); } }
public String next() { String rv; do { rv = produceNext(); } while (disallowed.contains(rv)); return rv; }
VarNameIterator implements Iterator<String> { public String next() { String rv; do { rv = produceNext(); } while (disallowed.contains(rv)); return rv; } }
VarNameIterator implements Iterator<String> { public String next() { String rv; do { rv = produceNext(); } while (disallowed.contains(rv)); return rv; } VarNameIterator();  VarNameIterator(String prefix); }
VarNameIterator implements Iterator<String> { public String next() { String rv; do { rv = produceNext(); } while (disallowed.contains(rv)); return rv; } VarNameIterator();  VarNameIterator(String prefix); void disallow(String str); boolean hasNext(); String next(); void remove(); }
VarNameIterator implements Iterator<String> { public String next() { String rv; do { rv = produceNext(); } while (disallowed.contains(rv)); return rv; } VarNameIterator();  VarNameIterator(String prefix); void disallow(String str); boolean hasNext(); String next(); void remove();  }