public static class Classifier.CountedValue<T> extends Object implements Comparable<Classifier.CountedValue<T>>
| Constructor and Description |
|---|
CountedValue(T value,
long count)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Classifier.CountedValue<T> cv2)
Decreasing comparison on count, with appropriate tie-breakers.
|
boolean |
equals(Object o) |
long |
getCount()
Returns the count.
|
T |
getValue()
Returns the value.
|
int |
hashCode() |
String |
toString() |
public CountedValue(T value, long count)
value - submitted valuecount - number of times it has been submittedpublic T getValue()
public long getCount()
public int compareTo(Classifier.CountedValue<T> cv2)
compareTo in interface Comparable<Classifier.CountedValue<T>>Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.