Modifier and Type | Method and Description |
---|---|
T |
getValue() |
long |
getWeight()
Returns the weight of the object.
|
static <T> WeightedValue<T> |
of(T value,
long weight) |
public static <T> WeightedValue<T> of(T value, long weight)
public long getWeight()
Weighted
public T getValue()