@Test public void require_that_iterators_work() { String val = "foo"; TestNodeVector v = new TestNodeVector(val, val, val); assertTrue(v.listIterator().hasNext()); assertTrue(v.listIterator(0).hasNext()); assertTrue(v.listIterator(1).hasNext()); assertTrue(v.listIterator(2).hasNext()); assertFalse(v.listIterator(3).hasNext()); }
public ListIterator<NODE> listIterator() { return vector.listIterator(); }
NodeVector implements java.util.List<NODE> { public ListIterator<NODE> listIterator() { return vector.listIterator(); } }
NodeVector implements java.util.List<NODE> { public ListIterator<NODE> listIterator() { return vector.listIterator(); }  }
NodeVector implements java.util.List<NODE> { public ListIterator<NODE> listIterator() { return vector.listIterator(); }  int length(); void add(int index, NODE element); boolean add(NODE o); boolean addAll(Collection<? extends NODE> c); boolean addAll(int index, Collection<? extends NODE> c); void clear(); NODE remove(int index); boolean remove(Object o); boolean removeAll(Collection<?> c); boolean retainAll(Collection<?> c); NODE set(int index, NODE element); boolean contains(Object o); boolean containsAll(Collection<?> c); @Override boolean equals(Object o); @Override int hashCode(); @SuppressWarnings("unchecked") NODE get(int index); int indexOf(Object o); boolean isEmpty(); Iterator<NODE> iterator(); int lastIndexOf(Object o); ListIterator<NODE> listIterator(); ListIterator<NODE> listIterator(int index); int size(); List<NODE> subList(int fromIndex, int toIndex); Object[] toArray(); T[] toArray(T[] a); }
NodeVector implements java.util.List<NODE> { public ListIterator<NODE> listIterator() { return vector.listIterator(); }  int length(); void add(int index, NODE element); boolean add(NODE o); boolean addAll(Collection<? extends NODE> c); boolean addAll(int index, Collection<? extends NODE> c); void clear(); NODE remove(int index); boolean remove(Object o); boolean removeAll(Collection<?> c); boolean retainAll(Collection<?> c); NODE set(int index, NODE element); boolean contains(Object o); boolean containsAll(Collection<?> c); @Override boolean equals(Object o); @Override int hashCode(); @SuppressWarnings("unchecked") NODE get(int index); int indexOf(Object o); boolean isEmpty(); Iterator<NODE> iterator(); int lastIndexOf(Object o); ListIterator<NODE> listIterator(); ListIterator<NODE> listIterator(int index); int size(); List<NODE> subList(int fromIndex, int toIndex); Object[] toArray(); T[] toArray(T[] a);  }