Constructor and Description |
---|
AbstractTestSemantics() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Test o)
Define ordering.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode()
Define hash semantics.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getNumber
public final int compareTo(Test o)
compareTo
in interface java.lang.Comparable<Test>
o
- Object
to compare.-1
if o
is less, 0
if its equal, 1
if its greater.public final int hashCode()
java.lang.Integer
so its good enough for
us.hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object