RTI Connext Java API  Version 6.1.1

Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < com.rti.dds.infrastructure.Condition > More...

Inherits AbstractNativeSequence.

Public Member Functions

 ConditionSeq (Collection conditions)
 Create a Condition Sequence with the given contents. The size and the maximum of the new sequence will match the size of the given collection. More...
 
 ConditionSeq ()
 Create a empty Condition Sequence with a initial maximum of zero. More...
 
 ConditionSeq (int initial_maximum)
 Create a Condition Sequence with the specified initial maximum. More...
 
int getMaximum ()
 Get the current maximum number of elements that can be stored in this sequence. More...
 

Detailed Description

Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < com.rti.dds.infrastructure.Condition >

Instantiates:
<<generic>> com.rti.dds.infrastructure.com.rti.dds.util.Sequence
See also
com.rti.dds.infrastructure.WaitSet
com.rti.dds.infrastructure.com.rti.dds.util.Sequence

Constructor & Destructor Documentation

◆ ConditionSeq() [1/3]

ConditionSeq ( Collection  conditions)

Create a Condition Sequence with the given contents. The size and the maximum of the new sequence will match the size of the given collection.

Parameters
conditionsThe initial contents of the sequence
Exceptions
NullPointerExceptionif the given collection is null

◆ ConditionSeq() [2/3]

Create a empty Condition Sequence with a initial maximum of zero.

◆ ConditionSeq() [3/3]

ConditionSeq ( int  initial_maximum)

Create a Condition Sequence with the specified initial maximum.

Parameters
initial_maximumThe initial maximum of the sequence.

Member Function Documentation

◆ getMaximum()

int getMaximum ( )

Get the current maximum number of elements that can be stored in this sequence.

The maximum of the sequence represents the maximum number of elements that the underlying buffer can hold. It does not represent the current number of elements.

The maximum is a non-negative number. It is initialized when the sequence is first created.

The maximum can be changed implicitly by adding an element to the sequence with add(), or explicitly by calling com.rti.dds.infrastructure.com.rti.dds.util.Sequence.Sequence.setMaximum.

Returns
the current maximum of the sequence.
See also
com.rti.dds.infrastructure.com.rti.dds.util.Sequence.Sequence.size()

Implements Sequence.