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.
|
Modifier and Type | Method and Description |
---|---|
String |
get(int i)
Get the label at position i.
|
static LabelList |
make(Collection<String> labels)
Constructor replacement.
|
int |
size()
Size of label list.
|
String |
toString() |
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
- PositionCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.