Example usage for org.apache.commons.collections.primitives DoubleCollection size

List of usage examples for org.apache.commons.collections.primitives DoubleCollection size

Introduction

In this page you can find the example usage for org.apache.commons.collections.primitives DoubleCollection size.

Prototype

int size();

Source Link

Document

Returns the number of elements I contain.

Usage

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);
}