| java.lang.Object org.apache.commons.collections.primitives.AbstractLongCollection org.apache.commons.collections.primitives.RandomAccessLongList org.apache.commons.collections.primitives.ArrayUnsignedIntList
Field Summary | |
final public static long | MAX_VALUE The maximum possible unsigned 32-bit value. | final public static long | MIN_VALUE The minimum possible unsigned 32-bit value. |
Constructor Summary | |
public | ArrayUnsignedIntList() Construct an empty list with the default
initial capacity. | public | ArrayUnsignedIntList(int initialCapacity) Construct an empty list with the given
initial capacity. | public | ArrayUnsignedIntList(LongCollection that) Constructs a list containing the elements of the given collection,
in the order they are returned by that collection's iterator. |
Method Summary | |
public void | add(int index, long element) Inserts the specified element at the specified position
(optional operation). | public void | ensureCapacity(int mincap) Increases my capacity, if necessary, to ensure that I can hold at
least the number of elements specified by the minimum capacity
argument without growing. | public long | get(int index) Returns the element at the specified position within
me. | public long | removeElementAt(int index) Removes the element at the specified position in
(optional operation). | public long | set(int index, long element) Replaces the element at the specified
position in me with the specified element
(optional operation). | public int | size() | public void | trimToSize() Reduce my capacity, if necessary, to match my
current
ArrayUnsignedIntList.size size . |
MAX_VALUE | final public static long MAX_VALUE(Code) | | The maximum possible unsigned 32-bit value.
|
MIN_VALUE | final public static long MIN_VALUE(Code) | | The minimum possible unsigned 32-bit value.
|
ArrayUnsignedIntList | public ArrayUnsignedIntList()(Code) | | Construct an empty list with the default
initial capacity.
|
ArrayUnsignedIntList | public ArrayUnsignedIntList(int initialCapacity)(Code) | | Construct an empty list with the given
initial capacity.
throws: IllegalArgumentException - when initialCapacity is negative |
ensureCapacity | public void ensureCapacity(int mincap)(Code) | | Increases my capacity, if necessary, to ensure that I can hold at
least the number of elements specified by the minimum capacity
argument without growing.
|
removeElementAt | public long removeElementAt(int index)(Code) | | Removes the element at the specified position in
(optional operation). Any subsequent elements
are shifted to the left, subtracting one from their
indices. Returns the element that was removed.
By construction, the returned value will be
between
ArrayUnsignedIntList.MIN_VALUE and
ArrayUnsignedIntList.MAX_VALUE , inclusive.
Parameters: index - the index of the element to remove the value of the element that was removed throws: UnsupportedOperationException - when this operation is not supported throws: IndexOutOfBoundsException - if the specified index is out of range |
|
|