Ejemplo n.º 1
0
            public virtual void Set(E e)
            {
                if (LastRet < 0)
                {
                    throw new IllegalStateException();
                }
                CheckForComodification();

                try
                {
                    OuterInstance.Set(LastRet, e);
                    ExpectedModCount = outerInstance.ModCount;
                }
                catch (IndexOutOfBoundsException)
                {
                    throw new ConcurrentModificationException();
                }
            }
Ejemplo n.º 2
0
 public virtual E Set(int index, E element)
 {
     RangeCheck(index);
     CheckForComodification();
     return(l.Set(index + Offset, element));
 }