Inheritance: java.util.AbstractCollection, List
コード例 #1
0
ファイル: AbstractList.cs プロジェクト: zhouweiaccp/XobotOS
 internal SimpleListIterator(AbstractList <E> _enclosing)
 {
     this._enclosing       = _enclosing;
     pos                   = -1;
     lastPosition          = -1;
     this.expectedModCount = this._enclosing.modCount;
 }
コード例 #2
0
ファイル: AbstractList.cs プロジェクト: ranganathsb/JavaSharp
            public Itr(AbstractList <E> outerInstance)
            {
                this.OuterInstance = outerInstance;

                if (!InstanceFieldsInitialized)
                {
                    InitializeInstanceFields();
                    InstanceFieldsInitialized = true;
                }
            }
コード例 #3
0
ファイル: AbstractList.cs プロジェクト: zhouweiaccp/XobotOS
 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
ファイル: AbstractList.cs プロジェクト: ranganathsb/JavaSharp
 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
ファイル: AbstractList.cs プロジェクト: ranganathsb/JavaSharp
 internal RandomAccessSubList(AbstractList <E> list, int fromIndex, int toIndex) : base(list, fromIndex, toIndex)
 {
 }
コード例 #7
0
ファイル: AbstractList.cs プロジェクト: ranganathsb/JavaSharp
 internal ListItr(AbstractList <E> outerInstance, int index) : base(outerInstance)
 {
     this.OuterInstance = outerInstance;
     Cursor             = index;
 }