- All Superinterfaces:
DataElement,Iterable<DataElement>
Interface for the HLA data type HLAfixedRecord.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(DataElement dataElement) Adds an element to this fixed record.get(int index) Returns element at the specified index.iterator()Returns an iterator for the elements in this fixed record.intsize()Returns the number of elements in this fixed record.Methods inherited from interface hla.rti1516e.encoding.DataElement
decode, decode, encode, getEncodedLength, getOctetBoundary, toByteArrayMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
add
Adds an element to this fixed record.- Parameters:
dataElement- element to add
-
size
int size()Returns the number of elements in this fixed record.- Returns:
- the number of elements in this fixed record
-
get
Returns element at the specified index.- Parameters:
index- index of element to get- Returns:
- the element at the specified
index
-
iterator
Iterator<DataElement> iterator()Returns an iterator for the elements in this fixed record.- Specified by:
iteratorin interfaceIterable<DataElement>- Returns:
- an iterator for the elements in this fixed record.
-