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;
 }
Exemple #2
0
 public bool HasNext()
 {
     return(n < list.Size());
 }