|
RTI Connext Java API Version 7.7.0
|
Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes > .
More...
Public Member Functions | |
| BytesSeq () | |
| Constructs an empty sequence of com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes objects with an initial maximum of zero. More... | |
| BytesSeq (int initialMaximum) | |
| Constructs an empty sequence of com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes objects with the given initial maximum. More... | |
| BytesSeq (Collection elements) | |
| Constructs a new sequence containing the given com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes objects. More... | |
| Bytes | get (int index) |
| Returns the element at the specified position in this sequence. More... | |
| Object | copy_from (Object src) |
Public Member Functions inherited from LoanableSequence | |
| LoanableSequence (Class elementType) | |
| Construct a new sequence for elements of the given type. More... | |
| LoanableSequence (Class elementType, int maximum) | |
| Construct a new sequence for elements of the given type. More... | |
| LoanableSequence (Class elementType, Collection elements) | |
| Construct a new sequence for elements of the given type. More... | |
| boolean | add (Object element) |
| Appends the specified element. More... | |
| void | add (int index, Object element) |
| Inserts an element at the specified location. More... | |
| void | clear () |
| Removes all of the elements. More... | |
| final boolean | hasOwnership () |
| Return the value of the owned flag. More... | |
| int | getMaximum () |
| Get the current maximum number of elements that can be stored in this sequence. More... | |
| void | setMaximum (int new_max) |
| Resize this sequence to a new desired maximum. More... | |
| Object | set (int index, Object element) |
| Replaces the element at the specified position in this sequence with the specified element. More... | |
| Object | get (int index) |
| Returns the element at the specified position in this sequence. More... | |
| int | size () |
| Returns the length of the sequence. More... | |
Public Member Functions inherited from AbstractSequence | |
| void | setMaximum (int new_max) |
| Resize this sequence to a new desired maximum. More... | |
| Class | getElementType () |
| void | add (int index, Object element) |
| Inserts the specified element at the specified position in this sequence. More... | |
| boolean | add (Object element) |
| Appends the specified element to the end of this sequence. More... | |
| final Object | remove (int index) |
| Remove the element at the given index by shifting all subsequent elements "left" by one. More... | |
| int | getMaximum () |
| Get the current maximum number of elements that can be stored in this sequence. More... | |
| void | setMaximum (int new_max) |
| Resize this sequence to a new desired maximum. More... | |
| Class | getElementType () |
| Object | copy_from (Object src) |
| Copy value of a data type from source. More... | |
Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes > .
| BytesSeq | ( | ) |
Constructs an empty sequence of com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes objects with an initial maximum of zero.
| BytesSeq | ( | int | initialMaximum | ) |
Constructs an empty sequence of com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes objects with the given initial maximum.
| BytesSeq | ( | Collection | elements | ) |
Constructs a new sequence containing the given com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes objects.
| elements | the initial contents of this sequence. |
| NullPointerException | if the input collection is null |
| Bytes get | ( | int | index | ) |
Returns the element at the specified position in this sequence.
Reimplemented from LoanableSequence.
| Object copy_from | ( | Object | src | ) |
Copy data into this object from another. The result of this method is that both this and src will be the same size and contain the same data.
| src | The Object which contains the data to be copied |
this | NullPointerException | If src is null. |
| ClassCastException | If src is not a Sequence OR if one of the objects contained in the Sequence is not of the expected type. |
Implements Copyable.
References LoanableSequence.add(), BytesSeq.copy_from(), LoanableSequence.getMaximum(), LoanableSequence.setMaximum(), and LoanableSequence.size().
Referenced by BytesSeq.copy_from().