List of usage examples for org.apache.commons.collections.primitives DoubleCollection size
int size();
From source file:com.ojcoleman.ahni.util.DoubleVector.java
/** * Constructs a list containing the elements of the given collection, * in the order they are returned by that collection's iterator. * /* w ww. j a v a 2 s. co m*/ * @see DoubleVector#addAll(org.apache.commons.collections.primitives.DoubleCollection) * @param that the non-<code>null</code> collection of <code>double</code>s * to add * @throws NullPointerException if <i>that</i> is <code>null</code> */ public DoubleVector(DoubleCollection that) { this(that.size()); addAll(that); }