Example #1
0
        public override bool addAll(int location, Collection <E> collection)
        {
            ListIterator <E> it    = listIterator(location);
            Iterator <E>     colIt = collection.iterator();
            int next = it.nextIndex();

            while (colIt.hasNext())
            {
                it.add(colIt.next());
            }
            return(next != it.nextIndex());
        }
Example #2
0
 public void add(E obj)
 {
     iterator.add(obj);
     subList.sizeChanged(true);
     end++;
 }