java.lang.Object
PointOfView.DimensionValue
PointOfView.PageRank
- All Implemented Interfaces:
- java.lang.Comparable
- public class PageRank
- extends DimensionValue
- implements java.lang.Comparable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOWER_LIMIT
public static final float LOWER_LIMIT
- See Also:
- Constant Field Values
HIGHER_LIMIT
public static final float HIGHER_LIMIT
- See Also:
- Constant Field Values
value
private float value
PageRank
public PageRank()
- Creates a new instance of PageRank
PageRank
public PageRank(float initializer)
PageRank
public PageRank(PageRank initializer)
getValue
public float getValue()
setValue
public void setValue(PageRank newValue)
setValue
public void setValue(float newValue)
throws java.lang.IllegalArgumentException
compareTo
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
- 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.
In the foregoing description, the notation
sgn(expression) designates the mathematical
signum function, which is defined to return one of -1,
0, or 1 according to whether the value of expression
is negative, zero or positive.
The implementor must ensure sgn(x.compareTo(y)) ==
-sgn(y.compareTo(x)) for all x and y. (This
implies that x.compareTo(y) must throw an exception iff
y.compareTo(x) throws an exception.)
The implementor must also ensure that the relation is transitive:
(x.compareTo(y)>0 && y.compareTo(z)>0) implies
x.compareTo(z)>0.
Finally, the implementer must ensure that x.compareTo(y)==0
implies that sgn(x.compareTo(z)) == sgn(y.compareTo(z)), for
all z.
It is strongly recommended, but not strictly required that
(x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any
class that implements the Comparable interface and violates
this condition should clearly indicate this fact. The recommended
language is "Note: this class has a natural ordering that is
inconsistent with equals."
- Specified by:
compareTo in interface java.lang.Comparable
compareTo
public int compareTo(PageRank otherObject)
compareTo
public int compareTo(float otherValue)
toLong
public long toLong()
- Specified by:
toLong in class DimensionValue