@SuppressWarnings("unchecked") @Override public <T> T[] toArray(T[] a) { refreshCopyIfNecessary(); return (T[]) ourCopy; }
@Override public Object[] toArray() { refreshCopyIfNecessary(); return ourCopy; }
/** * Return an array of type E[]. The returned array is intended to be iterated over. * If the list is modified, subsequent calls to this method will return different/modified * array instances. * * @return */ public E[] asTypedArray() { refreshCopyIfNecessary(); return ourCopy; }
@Override public Object[] toArray() { refreshCopyIfNecessary(); return ourCopy; }
/** * Return an array of type E[]. The returned array is intended to be iterated over. * If the list is modified, subsequent calls to this method will return different/modified * array instances. * * @return an array of type E[] */ public E[] asTypedArray() { refreshCopyIfNecessary(); return ourCopy; }
@Override public E get(int index) { refreshCopyIfNecessary(); return ourCopy[index]; }
@SuppressWarnings("unchecked") @Override public <T> T[] toArray(T[] a) { refreshCopyIfNecessary(); return (T[]) ourCopy; }
/** * Return an array of type E[]. The returned array is intended to be iterated over. * If the list is modified, subsequent calls to this method will return different/modified * array instances. * * @return */ public E[] asTypedArray() { refreshCopyIfNecessary(); return ourCopy; }
@Override public E get(int index) { refreshCopyIfNecessary(); return (E) ourCopy[index]; }
@Override public E get(int index) { refreshCopyIfNecessary(); return (E) ourCopy[index]; }
@Override public Object[] toArray() { refreshCopyIfNecessary(); return ourCopy; }
@SuppressWarnings("unchecked") @Override public <T> T[] toArray(T[] a) { refreshCopyIfNecessary(); return (T[]) ourCopy; }
@Override public E get(int index) { refreshCopyIfNecessary(); return (E) ourCopy[index]; }
@Override public Object[] toArray() { refreshCopyIfNecessary(); return ourCopy; }
@SuppressWarnings("unchecked") @Override public <T> T[] toArray(T[] a) { refreshCopyIfNecessary(); return (T[]) ourCopy; }
/** * Return an array of type E[]. The returned array is intended to be iterated over. * If the list is modified, subsequent calls to this method will return different/modified * array instances. * * @return */ public E[] asTypedArray() { refreshCopyIfNecessary(); return ourCopy; }