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

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

Introduction

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

Prototype

int size();

Source Link

Document

Returns the number of elements I contain.

Usage

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