| Modifier and Type | Field and Description |
|---|---|
protected int |
length |
| Modifier and Type | Method and Description |
|---|---|
RepeatedBoolean |
add(boolean value) |
RepeatedBoolean |
addAll(boolean[] values) |
RepeatedBoolean |
addAll(boolean[] buffer,
int offset,
int length) |
void |
addAll(RepeatedBoolean values) |
int |
addLength(int length)
Sets the length to length + offset and returns
the previous length.
|
boolean[] |
array()
Provides access to the internal storage array.
|
int |
capacity() |
protected void |
checkIndex(int index) |
RepeatedType |
clear()
Sets the output length to zero and performs any
necessary cleanup of the content.
|
RepeatedBoolean |
copyFrom(boolean[] buffer) |
RepeatedBoolean |
copyFrom(boolean[] buffer,
int offset,
int length) |
void |
copyFrom(RepeatedBoolean other) |
boolean |
equals(Object o) |
protected void |
extendCapacityTo(int desiredSize) |
boolean |
get(int index) |
protected Boolean |
getValueAt(int index) |
int |
hashCode()
Repeated fields have no immutable state and should not
be used in hashing structures.
|
us.hebi.quickbuf.RepeatedField.GenericIterator |
iterator() |
int |
length() |
static RepeatedBoolean |
newEmptyInstance() |
static RepeatedBoolean |
newInstance(boolean[] initialValue) |
int |
remainingCapacity() |
RepeatedType |
reserve(int count)
Makes sure that the internal storage capacity has space for
at least the requested number of entries.
|
RepeatedBoolean |
set(int index,
boolean value) |
RepeatedBoolean |
setInternalArray(boolean[] array)
Gifts ownership of the supplied array and uses it as the internal storage array.
|
RepeatedBoolean |
setInternalArray(boolean[] array,
int length) |
RepeatedBoolean |
setLength(int length)
Sets the absolute length of the data that can be serialized.
|
boolean[] |
toArray()
Creates a copy of the valid data contained in the
internal storage.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static RepeatedBoolean newEmptyInstance()
public static RepeatedBoolean newInstance(boolean[] initialValue)
protected void extendCapacityTo(int desiredSize)
protected Boolean getValueAt(int index)
public boolean get(int index)
public RepeatedBoolean set(int index, boolean value)
public RepeatedBoolean add(boolean value)
public RepeatedBoolean addAll(boolean[] values)
public RepeatedBoolean addAll(boolean[] buffer, int offset, int length)
public RepeatedBoolean copyFrom(boolean[] buffer)
public RepeatedBoolean copyFrom(boolean[] buffer, int offset, int length)
public void addAll(RepeatedBoolean values)
public void copyFrom(RepeatedBoolean other)
public RepeatedBoolean setInternalArray(boolean[] array)
array - array with valid data from zero to lengthpublic RepeatedBoolean setInternalArray(boolean[] array, int length)
public int capacity()
public final boolean[] toArray()
public final boolean[] array()
The array may be larger than the amount of contained data, but the data is only valid between index 0 and length.
public final RepeatedBoolean setLength(int length)
This does not change the underlying data, so setting a length longer than the current one may result in arbitrary data being serialized.
length - desired lengthpublic final int addLength(int length)
It is expected that users don't know the exact desired size, so the growth rate is the same as a generic ArrayList.
See setLength(int)
length - added to the current lengthpublic 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 addedpublic RepeatedType clear()
protected final void checkIndex(int index)
Copyright © 2019–2024 HEBI Robotics. All rights reserved.