net.fortytwo.flow.rdf.ranking
Class WeightedValue<T>

java.lang.Object
  extended by net.fortytwo.flow.rdf.ranking.WeightedValue<T>
All Implemented Interfaces:
Comparable<WeightedValue>

public class WeightedValue<T>
extends Object
implements Comparable<WeightedValue>

Author:
Joshua Shinavier (http://fortytwo.net)

Field Summary
 T value
           
 double weight
           
 
Constructor Summary
WeightedValue()
           
WeightedValue(T value, double weight)
           
 
Method Summary
 int compareTo(WeightedValue other)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

weight

public double weight

value

public T value
Constructor Detail

WeightedValue

public WeightedValue()

WeightedValue

public WeightedValue(T value,
                     double weight)
Method Detail

compareTo

public int compareTo(WeightedValue other)
Specified by:
compareTo in interface Comparable<WeightedValue>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2014. All Rights Reserved.