| java.lang.Object org.apache.commons.collections.primitives.AbstractIntCollection org.apache.commons.collections.primitives.RandomAccessIntList org.apache.commons.collections.primitives.ArrayUnsignedShortList
Field Summary | |
final public static int | MAX_VALUE The maximum possible unsigned 16-bit value (0xFFFF ). | final public static int | MIN_VALUE The minimum possible unsigned 16-bit value (0x0000 ). |
Constructor Summary | |
public | ArrayUnsignedShortList() Construct an empty list with the default
initial capacity. | public | ArrayUnsignedShortList(int initialCapacity) Construct an empty list with the given
initial capacity. | public | ArrayUnsignedShortList(IntCollection 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, int 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 int | get(int index) Returns the element at the specified position within
me. | public int | removeElementAt(int index) Removes the element at the specified position in
(optional operation). | public int | set(int index, int 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
ArrayUnsignedShortList.size size . |
MAX_VALUE | final public static int MAX_VALUE(Code) | | The maximum possible unsigned 16-bit value (0xFFFF ).
|
MIN_VALUE | final public static int MIN_VALUE(Code) | | The minimum possible unsigned 16-bit value (0x0000 ).
|
ArrayUnsignedShortList | public ArrayUnsignedShortList()(Code) | | Construct an empty list with the default
initial capacity.
|
ArrayUnsignedShortList | public ArrayUnsignedShortList(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 int 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
ArrayUnsignedShortList.MIN_VALUE and
ArrayUnsignedShortList.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 |
|
|