public class Ranking<V>
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
int |
originalPos
The original (0-indexed) position of the instance being ranked
|
double |
rankScore
The actual rank score (normally between 0 and 1)
|
Constructor and Description |
---|
Ranking(int originalPos,
double rankScore,
V ranked)
Constructor which allows values to be set on construction
|
public int originalPos
public double rankScore
public Ranking(int originalPos, double rankScore, V ranked)
originalPos
- The original (0-indexed) position of the instance being rankedrankScore
- The actual rank score (normally between 0 and 1)public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- The other rankingpublic java.lang.String toString()
toString
in class java.lang.Object
public V getRanked()
public void setRanked(V ranked)
ranked
- the ranked to set