Package elki.data
Class ClassLabel.Factory<L extends ClassLabel>
- java.lang.Object
-
- elki.data.ClassLabel.Factory<L>
-
- Direct Known Subclasses:
HierarchicalClassLabel.Factory
,SimpleClassLabel.Factory
- Enclosing class:
- ClassLabel
public abstract static class ClassLabel.Factory<L extends ClassLabel> extends java.lang.Object
Class label factory.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SimpleTypeInformation<? super L>
getTypeInformation()
Get type information for the labels.abstract L
makeFromString(java.lang.String lbl)
Convert a string into a class label.
-
-
-
Field Detail
-
existing
protected java.util.HashMap<java.lang.String,L extends ClassLabel> existing
Set for reusing the same objects.
-
-
Method Detail
-
makeFromString
public abstract L makeFromString(java.lang.String lbl)
Convert a string into a class label.- Parameters:
lbl
- String to convert- Returns:
- Class label instance.
-
getTypeInformation
public abstract SimpleTypeInformation<? super L> getTypeInformation()
Get type information for the labels.- Returns:
- Type information
-
-