상속: java.util.AbstractCollection, List
예제 #1
0
 internal SimpleListIterator(AbstractList <E> _enclosing)
 {
     this._enclosing       = _enclosing;
     pos                   = -1;
     lastPosition          = -1;
     this.expectedModCount = this._enclosing.modCount;
 }
예제 #2
0
            public Itr(AbstractList <E> outerInstance)
            {
                this.OuterInstance = outerInstance;

                if (!InstanceFieldsInitialized)
                {
                    InitializeInstanceFields();
                    InstanceFieldsInitialized = true;
                }
            }
예제 #3
0
 internal FullListIterator(AbstractList <E> _enclosing, int start) : base(_enclosing
                                                                          )
 {
     this._enclosing = _enclosing;
     if (start >= 0 && start <= this._enclosing.size())
     {
         this.pos = start - 1;
     }
     else
     {
         throw new System.IndexOutOfRangeException();
     }
 }
예제 #4
0
 internal SubList(AbstractList <E> list, int fromIndex, int toIndex)
 {
     if (fromIndex < 0)
     {
         throw new IndexOutOfBoundsException("fromIndex = " + fromIndex);
     }
     if (toIndex > list.Size())
     {
         throw new IndexOutOfBoundsException("toIndex = " + toIndex);
     }
     if (fromIndex > toIndex)
     {
         throw new IllegalArgumentException("fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")");
     }
     l             = list;
     Offset        = fromIndex;
     Size_Renamed  = toIndex - fromIndex;
     this.ModCount = l.ModCount;
 }
예제 #5
0
 public AbstractListIterator(AbstractList <V> list)
 {
     this.list = list;
     this.n    = 0;
 }
예제 #6
0
 internal RandomAccessSubList(AbstractList <E> list, int fromIndex, int toIndex) : base(list, fromIndex, toIndex)
 {
 }
예제 #7
0
 internal ListItr(AbstractList <E> outerInstance, int index) : base(outerInstance)
 {
     this.OuterInstance = outerInstance;
     Cursor             = index;
 }