@Test public void testIterator() { final int SIZE = 1000; Set<Integer> set = new AaTreeSet<>(); for (int i = 0; i < SIZE; i++) { set.add(i * i); List<Integer> list = new ArrayList<>(set); assertEquals(i + 1, list.size()); for (int j = 0; j < list.size(); j++) assertEquals(j * j, (int)list.get(j)); } }
public Iterator<E> iterator() { return new Iter(); }
AaTreeSet extends AbstractSet<E> { public Iterator<E> iterator() { return new Iter(); } }
AaTreeSet extends AbstractSet<E> { public Iterator<E> iterator() { return new Iter(); } AaTreeSet();  AaTreeSet(Collection<? extends E> coll); }
AaTreeSet extends AbstractSet<E> { public Iterator<E> iterator() { return new Iter(); } AaTreeSet();  AaTreeSet(Collection<? extends E> coll); @SuppressWarnings("unchecked") void clear(); int size(); boolean contains(E val); boolean add(E val); boolean remove(E val); Iterator<E> iterator(); }
AaTreeSet extends AbstractSet<E> { public Iterator<E> iterator() { return new Iter(); } AaTreeSet();  AaTreeSet(Collection<? extends E> coll); @SuppressWarnings("unchecked") void clear(); int size(); boolean contains(E val); boolean add(E val); boolean remove(E val); Iterator<E> iterator();  }