/** * Returns an iterator over the elements contained in this collection. * * @return An iterator over the elements contained in this collection. */ public Iterator iterator() { maintain(); return new MyIterator(collection.iterator()); }
public Object next() { maintain(); return nextObject(); }