Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

PointOfView
Class PageRank  view PageRank download PageRank.java

java.lang.Object
  extended byPointOfView.DimensionValue
      extended byPointOfView.PageRank
All Implemented Interfaces:
java.lang.Comparable

public class PageRank
extends DimensionValue
implements java.lang.Comparable


Field Summary
static float HIGHER_LIMIT
           
static float LOWER_LIMIT
           
private  float value
           
 
Constructor Summary
PageRank()
          Creates a new instance of PageRank
PageRank(float initializer)
           
PageRank(PageRank initializer)
           
 
Method Summary
 int compareTo(float otherValue)
           
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
 int compareTo(PageRank otherObject)
           
 float getValue()
           
 void setValue(float newValue)
           
 void setValue(PageRank newValue)
           
 long toLong()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PageRank

public PageRank()
Creates a new instance of PageRank


PageRank

public PageRank(float initializer)

PageRank

public PageRank(PageRank initializer)
Method Detail

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