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