net.fortytwo.flow.rdf.ranking
Class WeightedValue<T>
java.lang.Object
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)
weight
public double weight
value
public T value
WeightedValue
public WeightedValue()
WeightedValue
public WeightedValue(T value,
double weight)
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.