public class Ranking
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
private java.lang.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(java.lang.String name,
long runtime)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Implementation of the
Comparable interface. |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Returns the name of the dax.
|
long |
getRank()
Returns the rank.
|
long |
getRuntime()
Returns the runtime.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setRank(long rank)
Sets the rank.
|
void |
setRuntime(long runtime)
Sets the runtime.
|
java.lang.String |
toString()
Returns a textual description.
|
private java.lang.String mName
private long mRank
private long mRuntime
public Ranking(java.lang.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(java.lang.String name)
name
- the name of the daxpublic long getRank()
public long getRuntime()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.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 java.lang.Comparable
o
- is the object to be comparedjava.lang.ClassCastException
- if the specified object's type
prevents it from being compared to this Object.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object