|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.data.ClassLabel
public abstract class ClassLabel
A ClassLabel to identify a certain class of objects that is to discern from other classes by a classifier.
Nested Class Summary | |
---|---|
static class |
ClassLabel.Factory<L extends ClassLabel>
Class label factory |
Constructor Summary | |
---|---|
protected |
ClassLabel()
ClassLabels need an empty constructor for dynamic access. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
protected ClassLabel()
Method Detail |
---|
public boolean equals(Object obj)
this.compareTo(o)==0
, then
this.equals(o)
should be true
.
equals
in class Object
obj
- an object to test for equality w.r.t. this ClassLabel
this==obj || this.compareTo(o)==0
, false
otherwisepublic abstract String toString()
ClassLabel a.equals((ClassLabel) b)
, then also
a.toString().equals(b.toString())
should hold.
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |