Public Member Functions |
| IntSeq () |
| Constructs an empty sequence of integers with an initial maximum of zero.
|
|
| IntSeq (int initialMaximum) |
| Constructs an empty sequence of integers with the given initial maximum.
|
|
| IntSeq (int[] ints) |
| Constructs a new sequence containing the given integers.
|
|
boolean | addAllInt (int[] elements, int offset, int length) |
| Append length elements from the given array to this sequence, starting at index offset in that array.
|
|
boolean | addAllInt (int[] elements) |
|
void | addInt (int element) |
| Append the element to the end of the sequence.
|
|
void | addInt (int index, int element) |
| Shift all elements in the sequence starting from the given index and add the element to the given index.
|
|
int | getInt (int index) |
| Returns the integer at the given index.
|
|
int | setInt (int index, int element) |
| Set the new integer at the given index and return the old integer.
|
|
void | setInt (int dstIndex, int[] elements, int srcIndex, int length) |
| Copy a portion of the given array into this sequence.
|
|
int[] | toArrayInt (int[] array) |
| Return an array containing copy of the contents of this sequence.
|
|
Object | get (int index) |
| A wrapper for getInt(int) that returns a java.lang.Integer.
|
|
Object | set (int index, Object element) |
| A wrapper for setInt().
|
|
void | add (int index, Object element) |
| A wrapper for addInt(int, int).
|
|
final Class | getElementType () |
|
void | loan (Object buffer, int new_length) |
| Loan a contiguous buffer to this sequence.
|
|
void | unloan () |
| Return the loaned buffer in the sequence and set the maximum to 0.
|
|
final boolean | hasOwnership () |
| Return the value of the owned flag.
|
|
final void | clear () |
|
final void | setSize (int newSize) |
|
final int | size () |
|
final Object | copy_from (Object src) |
|
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.
|
|
int | getMaximum () |
| Get the current maximum number of elements that can be stored in this sequence.
|
|
void | setMaximum (int new_max) |
| Resize this sequence to a new desired maximum.
|
|
Class | getElementType () |
|
Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence
< com.rti.dds.infrastructure.int >
- Instantiates:
- <<generic>> com.rti.dds.infrastructure.com.rti.dds.util.Sequence
- See Also
- com.rti.dds.infrastructure.int
-
com.rti.dds.infrastructure.com.rti.dds.util.Sequence