public abstract class ClassLabel extends java.lang.Object implements java.lang.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(java.lang.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 java.lang.String |
toString()
Any ClassLabel requires a method to represent the label as a String.
|
protected ClassLabel()
public boolean equals(java.lang.Object obj)
this.compareTo(o)==0, then
this.equals(o) should be true.equals in class java.lang.Objectobj - an object to test for equality w.r.t. this ClassLabelthis==obj || this.compareTo(o)==0, false
otherwisepublic abstract java.lang.String toString()
ClassLabel a.equals((ClassLabel) b), then also
a.toString().equals(b.toString()) should hold.
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.