| 
				
  | 
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.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.
| 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  void | 
init(String label)
Initialization of a ClassLabel for the given label.  | 
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 abstract void init(String label)
label - the label to create a ClassLabelpublic boolean equals(Object obj)
this.compareTo(o)==0, then
 this.equals(o) should be true.
equals in class Objectobj - 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 ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()
  | 
                
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||