List of usage examples for org.apache.commons.collections.primitives IntCollection size
int size();
From source file:jopt.csp.util.SortableIntList.java
/** * Constructs a list containing the elements of the given collection, * in the order they are returned by that collection's iterator. * * @param that the non-<code>null</code> collection of <code>int</code>s * to add//from w w w . ja v a 2 s . c om * @throws NullPointerException if <i>that</i> is <code>null</code> * @see ArrayIntList#addAll(org.apache.commons.collections.primitives.IntCollection) */ public SortableIntList(IntCollection that) { this(that.size()); addAll(that); }