RTI Connext Java API  Version 5.0.0
WcharSeq Class Reference

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

Inheritance diagram for WcharSeq:
CharSeq AbstractPrimitiveSequence AbstractSequence Sequence Copyable Sequence

Public Member Functions

 WcharSeq ()
 Constructs an empty sequence of wide characters with an initial maximum of zero.
 
 WcharSeq (int initialMaximum)
 Constructs an empty sequence of wide characters with the given initial maximum.
 
 WcharSeq (char[] chars)
 Constructs a new sequence containing the given wide characters.
 
- Public Member Functions inherited from CharSeq
 CharSeq ()
 Constructs an empty sequence of single-byte (serialized) characters with an initial maximum of zero.
 
 CharSeq (int initialMaximum)
 Constructs an empty sequence of single-byte (serialized) characters with the given initial maximum.
 
 CharSeq (char[] chars)
 Constructs a new sequence containing the given single-byte (serialized) characters.
 
final boolean addAllChar (char[] elements, int offset, int length)
 Append length elements from the given array to this sequence, starting at index offset in that array.
 
final boolean addAllChar (char[] elements)
 Append the elements of the given array into this sequence.
 
final void addChar (char element)
 Append the element to the end of the sequence.
 
final void addChar (int index, char element)
 Shift all elements in the sequence starting from the given index and add the element to the given index.
 
final char getChar (int index)
 Returns the character at the given index.
 
final char setChar (int index, char element)
 Set the new character at the given index and return the old character.
 
final void setChar (int dstIndex, char[] elements, int srcIndex, int length)
 Copy a portion of the given array into this sequence.
 
final char[] toArrayChar (char[] array)
 Return an array containing copy of the contents of this sequence.
 
final Object get (int index)
 A wrapper for getChar(int) that returns a java.lang.Character.
 
final Object set (int index, Object element)
 A wrapper for setChar().
 
final void add (int index, Object element)
 A wrapper for addChar(int, int).
 
- Public Member Functions inherited from AbstractPrimitiveSequence
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)
 
- 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 ()
 

Detailed Description

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

Instantiates:
<<generic>> com.rti.dds.infrastructure.com.rti.dds.util.Sequence
See Also
com.rti.dds.infrastructure.char
com.rti.dds.infrastructure.com.rti.dds.util.Sequence

Constructor & Destructor Documentation

WcharSeq ( )

Constructs an empty sequence of wide characters with an initial maximum of zero.

WcharSeq ( int  initialMaximum)

Constructs an empty sequence of wide characters with the given initial maximum.

WcharSeq ( char[]  chars)

Constructs a new sequence containing the given wide characters.

Parameters
charsthe initial contents of this sequence
Exceptions
NullPointerExceptionif the input array is null

RTI Connext Java API Version 5.0.0 Copyright © Thu Aug 30 2012 Real-Time Innovations, Inc