RTI Connext Java API  Version 5.1.0
BytesSeq Class Reference

Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes > . More...

Inheritance diagram for BytesSeq:
LoanableSequence Copyable Sequence AbstractSequence Sequence

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.
 
 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.
 
Object copy_from (Object src)
 
- Public Member Functions inherited from LoanableSequence
 LoanableSequence (Class elementType)
 Construct a new sequence for elements of the given type.
 
 LoanableSequence (Class elementType, int maximum)
 Construct a new sequence for elements of the given type.
 
 LoanableSequence (Class elementType, Collection elements)
 Construct a new sequence for elements of the given type.
 
final boolean hasOwnership ()
 Return the value of the owned flag.
 
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.
 
Object set (int index, Object element)
 Replaces the element at the specified position in this sequence with the specified element.
 
Object get (int index)
 Returns the element at the specified position in this sequence.
 
int size ()
 Returns the length of the sequence.
 
- Public Member Functions inherited from AbstractSequence
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.
 
- Public Member Functions inherited from Sequence
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 ()
 
- Public Member Functions inherited from Copyable
Object copy_from (Object src)
 Copy value of a data type from source.
 

Detailed Description

Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes > .

Instantiates:
<<generic>> com.rti.dds.infrastructure.com.rti.dds.util.Sequence
See Also
com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes

Constructor & Destructor Documentation

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.

Parameters
elementsthe initial contents of this sequence.
Exceptions
NullPointerExceptionif the input collection is null

Member Function Documentation

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.

Parameters
srcThe Object which contains the data to be copied
Returns
this
Exceptions
NullPointerExceptionIf src is null.
ClassCastExceptionIf src is not a Sequence OR if one of the objects contained in the Sequence is not of the expected type.
See Also
com.rti.dds.infrastructure.Copyable::copy_from(java.lang.Object)

RTI Connext Java API Version 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc