public SubList(int first, int last, FastArrayList root) { this.first = first; this.last = last; this.root = root; this.expected = root.list; }
public SubListIter(int i, SubList root) { this.rootSubList = root; this.root = root.root; this.expected = this.root.list; this.iter = rootSubList.get(expected).listIterator(i); }
/** * Return a shallow copy of this <code>FastArrayList</code> instance. * The elements themselves are not copied. */ public override Object clone() { FastArrayList results = null; if (fast) { results = new FastArrayList(list); } else { lock (list) { results = new FastArrayList(list); } } results.setFast(getFast()); return(results); }
public ListIter(int i, FastArrayList root) { this.root = root; this.expected = root.list; this.iter = get().listIterator(i); }