public class Ranking extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
private String |
mName
The name of the DAX.
|
private long |
mRank
Rank of the dax.
|
private long |
mRuntime
The runtime of the dax in seconds.
|
Constructor and Description |
---|
Ranking(String name,
long runtime)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Implementation of the
Comparable interface. |
boolean |
equals(Object o) |
String |
getName()
Returns the name of the dax.
|
long |
getRank()
Returns the rank.
|
long |
getRuntime()
Returns the runtime.
|
void |
setName(String name)
Sets the name.
|
void |
setRank(long rank)
Sets the rank.
|
void |
setRuntime(long runtime)
Sets the runtime.
|
String |
toString()
Returns a textual description.
|
private String mName
private long mRank
private long mRuntime
public Ranking(String name, long runtime)
name
- the name of the daxruntime
- the runtime of the daxpublic void setRuntime(long runtime)
runtime
- the runtimepublic void setRank(long rank)
rank
- the rank.public void setName(String name)
name
- the name of the daxpublic long getRank()
public long getRuntime()
public String getName()
public String toString()
public int compareTo(Object o)
Comparable
interface.
Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object. The
definitions are compared by their type, and by their short ids.compareTo
in interface Comparable
o
- is the object to be comparedClassCastException
- if the specified object's type
prevents it from being compared to this Object.