@Override public List<E> subList(int from, int to) {Slice slice = this.slice;if (from < 0 || from > to || to > size()) {throw new IndexOutOfBoundsException("from=" + from + ", to=" + to +", list size=" + size());}return new CowSubList(slice.expectedElements, slice.from + from, slice.from + to);}

@ Override public List < E > subList ( int from , int to ) { Slice slice = this . slice ; if ( from < 0 || from > to || to > size ( ) ) { throw new IndexOutOfBoundsException ( "from=" + from + ", to=" + to + ", list size=" + size ( ) ) ; } return new CowSubList ( slice . expectedElements , slice . from + from , slice . from + to ) ; }
public virtual java.util.List<E> subList(int from, int to){object[] snapshot = elements;if (from < 0 || from > to || to > snapshot.Length){throw new System.IndexOutOfRangeException("from=" + from + ", to=" + to + ", list size="+ snapshot.Length);}return new java.util.concurrent.CopyOnWriteArrayList<E>.CowSubList(this, snapshot, from, to);}
