Esempio n. 1
0
 public SubList(int first, int last, FastArrayList root)
 {
     this.first    = first;
     this.last     = last;
     this.root     = root;
     this.expected = root.list;
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        /**
         * 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);
        }
Esempio n. 4
0
 public ListIter(int i, FastArrayList root)
 {
     this.root     = root;
     this.expected = root.list;
     this.iter     = get().listIterator(i);
 }