public final class RepeatedMessage<MessageType extends ProtoMessage<MessageType>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected STORE[] |
array |
protected int |
length |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IN value) |
void |
addAll(IN[] values) |
void |
addAll(IN[] buffer,
int offset,
int length) |
void |
addAll(SubType values) |
protected MessageType[] |
allocateArray0(int desiredSize) |
int |
capacity() |
protected void |
checkIndex(int index) |
RepeatedMessage<MessageType> |
checkInitialized()
Helper method to check whether all contained messages are
initialized, i.e., if all required fields are set.
|
SubType |
clear()
Sets the output length to zero and performs any
necessary cleanup of the content.
|
protected void |
clearIndex0(int index) |
RepeatedMessage<MessageType> |
clearQuick() |
void |
copyFrom(IN[] buffer) |
void |
copyFrom(IN[] buffer,
int offset,
int length) |
void |
copyFrom(SubType other) |
protected void |
copyFrom0(MessageType store,
MessageType other) |
protected MessageType |
createEmpty() |
boolean |
equals(Object o) |
protected void |
extendCapacityTo(int desiredSize) |
OUT |
get(int index) |
protected MessageType |
getIndex0(int index) |
protected OUT |
getValueAt(int index) |
int |
hashCode()
Repeated fields have no immutable state and should not
be used in hashing structures.
|
boolean |
isInitialized() |
us.hebi.quickbuf.RepeatedField.GenericIterator |
iterator() |
int |
length() |
static <T extends ProtoMessage<T>> |
newEmptyInstance(MessageFactory<T> factory) |
STORE |
next() |
int |
remainingCapacity() |
RepeatedType |
reserve(int count)
Makes sure that the internal storage capacity has space for
at least the requested number of entries.
|
void |
set(int index,
IN value) |
protected void |
setIndex0(int index,
MessageType value) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static <T extends ProtoMessage<T>> RepeatedMessage<T> newEmptyInstance(MessageFactory<T> factory)
protected final void setIndex0(int index,
MessageType value)
protected MessageType getIndex0(int index)
protected final void clearIndex0(int index)
protected void copyFrom0(MessageType store, MessageType other)
protected final MessageType[] allocateArray0(int desiredSize)
public final RepeatedMessage<MessageType> clearQuick()
public final boolean isInitialized()
public RepeatedMessage<MessageType> checkInitialized() throws InvalidProtocolBufferException
Message content is not automatically checked after merging new data. This method should be called manually as needed.
InvalidProtocolBufferException - if one or more messages are not initialized.protected MessageType createEmpty()
public final STORE next()
protected OUT getValueAt(int index)
public final OUT get(int index)
public final void set(int index,
IN value)
public final void addAll(IN[] values)
public final void addAll(IN[] buffer,
int offset,
int length)
public final void add(IN value)
public final void copyFrom(IN[] buffer)
public final void copyFrom(IN[] buffer,
int offset,
int length)
public final void copyFrom(SubType other)
public void addAll(SubType values)
public final int capacity()
public final SubType clear()
protected final void extendCapacityTo(int desiredSize)
public final int length()
public final int remainingCapacity()
public us.hebi.quickbuf.RepeatedField.GenericIterator iterator()
public final RepeatedType reserve(int count)
count - number of entries to be addedprotected final void checkIndex(int index)
Copyright © 2019–2024 HEBI Robotics. All rights reserved.