public final class WeightedThing<T> extends Object implements Comparable<WeightedThing<T>>
| Constructor and Description |
|---|
WeightedThing(double weight) |
WeightedThing(T thing,
double weight) |
public WeightedThing(T thing, double weight)
public WeightedThing(double weight)
public T getValue()
public double getWeight()
public void setWeight(double weight)
public int compareTo(WeightedThing<T> other)
compareTo in interface Comparable<WeightedThing<T>>Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.