/** * Appends all elements of the supplied vector to this vector. * * @param toAppend the FastVector containing elements to append. */ public final void appendElements(Collection<? extends E> toAppend) { addAll(toAppend); }
/** * Appends all elements of the supplied vector to this vector. * * @param toAppend the FastVector containing elements to append. */ public final void appendElements(Collection<? extends E> toAppend) { addAll(toAppend); }
new FastVector<Prediction>(numToRetain); FastVector<Prediction> tmpV = new FastVector<Prediction>(); tmpV.addAll(m_Predictions); for (int i = m_Predictions.size() - 1; i >= 0; i--) { int index = r.nextInt(i + 1);