public final class ByteBlockList extends LabeledList
ByteBlock instances.| Constructor and Description |
|---|
ByteBlockList(int size)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBlock |
get(int n)
Gets the indicated element.
|
ByteBlock |
labelToBlock(int label)
Gets the block with the given label.
|
void |
set(int n,
ByteBlock bb)
Sets the element at the given index.
|
getLabelsInOrder, getMaxLabel, indexOfLabel, set, shrinkToFitequals, get0, getOrNull0, hashCode, set0, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic ByteBlockList(int size)
size - >= 0; the number of elements to be in the listpublic ByteBlock get(int n)
NullPointerException.n - >= 0, < size(); which elementnon-null; the indicated elementpublic ByteBlock labelToBlock(int label)
label - the label to look fornon-null; the block with the given labelpublic void set(int n,
ByteBlock bb)
n - >= 0, < size(); which elementbb - null-ok; the value to storeCopyright © 2020. All Rights Reserved.