Public Member Functions | |
void | setMaximum (int new_max) |
Resize this sequence to a new desired maximum. | |
Class | getElementType () |
void | add (int index, Object element) |
Inserts the specified element at the specified position in this sequence. | |
boolean | add (Object element) |
Appends the specified element to the end of this sequence. | |
final Object | remove (int index) |
Remove the element at the given index by shifting all subsequent elements "left" by one. |
void setMaximum | ( | int | new_max | ) |
Resize this sequence to a new desired maximum.
This operation does nothing if the new desired maximum matches the current maximum.
Note: If you add an element with add()
, the sequence's size is increased implicitly.
new_max | Must be >= 0. |
Implements Sequence.
Reimplemented in LoanableSequence.
Class getElementType | ( | ) |
Implements Sequence.
Reimplemented in AbstractPrimitiveSequence.
void add | ( | int | index, | |
Object | element | |||
) |
Inserts the specified element at the specified position in this sequence.
Reimplemented in BooleanSeq, ByteSeq, CharSeq, DoubleSeq, FloatSeq, IntSeq, LongSeq, ShortSeq, and AbstractPrimitiveSequence.
boolean add | ( | Object | element | ) |
Appends the specified element to the end of this sequence.
final Object remove | ( | int | index | ) |
Remove the element at the given index by shifting all subsequent elements "left" by one.