public class LabelList
extends java.lang.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 java.lang.String[] |
labels
Labels.
|
static ByteBufferSerializer<LabelList> |
SERIALIZER
Serializer.
|
Modifier | Constructor and Description |
---|---|
private |
LabelList(int initialCapacity)
Constructor.
|
protected |
LabelList(java.lang.String[] array)
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(int i)
Get the label at position i.
|
static LabelList |
make(java.util.Collection<java.lang.String> labels)
Constructor replacement.
|
int |
size()
Size of label list.
|
java.lang.String |
toString() |
public static final ByteBufferSerializer<LabelList> SERIALIZER
private java.lang.String[] labels
public static final LabelList EMPTY_LABELS
private LabelList(int initialCapacity)
initialCapacity
- initial sizeprotected LabelList(java.lang.String[] array)
make(java.util.Collection<java.lang.String>)
.array
- Label listpublic static LabelList make(java.util.Collection<java.lang.String> labels)
labels
- Existing labelspublic int size()
public java.lang.String get(int i)
i
- Positionpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.