public static class DefaultWeightedValue.WeightComparator extends AbstractCloneableSerializable implements java.util.Comparator<WeightedValue<?>>
| Constructor and Description |
|---|
WeightComparator()
Creates a new
WeightComarator. |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(WeightedValue<?> first,
WeightedValue<?> second) |
static DefaultWeightedValue.WeightComparator |
getInstance()
Gets a static instance of this class.
|
clonepublic static DefaultWeightedValue.WeightComparator getInstance()
public int compare(WeightedValue<?> first, WeightedValue<?> second)
compare in interface java.util.Comparator<WeightedValue<?>>