Constructor and Description |
---|
AbstractTestSemantics() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Test o)
Define ordering.
|
boolean |
equals(Object o) |
int |
hashCode()
Define hash semantics.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getNumber
public final int compareTo(Test o)
compareTo
in interface 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.Copyright © 2000-2014. All Rights Reserved.