public final class WeightedThing<T> extends Object implements Comparable<WeightedThing<T>>
Constructor and Description |
---|
WeightedThing(double weight) |
WeightedThing(T thing,
double weight) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WeightedThing<T> other) |
boolean |
equals(Object o) |
T |
getValue() |
double |
getWeight() |
int |
hashCode() |
void |
setWeight(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–2017 The Apache Software Foundation. All rights reserved.