public class LabelList extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LabelList.Serializer
Serialization class.
|
Modifier and Type | Field and Description |
---|---|
static LabelList |
EMPTY_LABELS
Empty label list.
|
private String[] |
labels
Labels.
|
static ByteBufferSerializer<LabelList> |
SERIALIZER
Serializer.
|
Modifier | Constructor and Description |
---|---|
private |
LabelList(int initialCapacity)
Constructor.
|
protected |
LabelList(String[] array)
Private constructor.
|
public static final ByteBufferSerializer<LabelList> SERIALIZER
private String[] labels
public static final LabelList EMPTY_LABELS
private LabelList(int initialCapacity)
initialCapacity
- initial sizeprotected LabelList(String[] array)
make(java.util.Collection<java.lang.String>)
.array
- Label listpublic static LabelList make(Collection<String> labels)
labels
- Existing labelspublic int size()
public String get(int i)
i
- Position