@Override public <X> X[] toArray(X[] a) { int size = size(); if (a.length < size) a = (X[]) Array.newInstance(a.getClass() .getComponentType(), size); System.arraycopy(list, start, a, 0, size); if (a.length > size) a[size] = null; return a; }
@Override public <X> X[] toArray(X[] a) { int size = size(); if (a.length < size) a = (X[]) Array.newInstance(a.getClass() .getComponentType(), size); System.arraycopy(list, start, a, 0, size); if (a.length > size) a[size] = null; return a; }
@Override public <X> X[] toArray(X[] a) { int size = size(); if (a.length < size) a = (X[]) Array.newInstance(a.getClass() .getComponentType(), size); System.arraycopy(list, start, a, 0, size); if (a.length > size) a[size] = null; return a; }
@SuppressWarnings("hiding") public <X> X[] toArray(X[] a) { int size = size(); if (a.length < size) a = (X[]) Array.newInstance(a.getClass().getComponentType(), size); System.arraycopy(list, start, a, 0, size); if (a.length > size) a[size] = null; return a; }
@Override public <X> X[] toArray(X[] a) { int size = size(); if (a.length < size) a = (X[]) Array.newInstance(a.getClass() .getComponentType(), size); System.arraycopy(list, start, a, 0, size); if (a.length > size) a[size] = null; return a; }
@Override public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size() - 1); }
@Override public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size() - 1); }
public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size()-1); }
@Override public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size() - 1); }
public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size()-1); }
@Override public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size() - 1); }
public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size()-1); }
@Override public T last() { if (isEmpty()) throw new NoSuchElementException("last"); return get(size() - 1); }