public abstract class ClassLabel extends Object implements Comparable<ClassLabel>
Modifier and Type | Class and Description |
---|---|
static class |
ClassLabel.Factory<L extends ClassLabel>
Class label factory.
|
Modifier | Constructor and Description |
---|---|
protected |
ClassLabel()
ClassLabels need an empty constructor for dynamic access.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Any ClassLabel should ensure a natural ordering that is consistent with
equals.
|
int |
hashCode()
Returns the hashCode of the String-representation of this ClassLabel.
|
abstract String |
toString()
Any ClassLabel requires a method to represent the label as a String.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
protected ClassLabel()
public boolean equals(Object obj)
this.compareTo(o)==0
, then
this.equals(o)
should be true
.public abstract String toString()
ClassLabel a.equals((ClassLabel) b)
, then also
a.toString().equals(b.toString())
should hold.
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.