T - the type of values described by the statistics instancepublic class Statistics<T> extends Object
| Constructor and Description |
|---|
Statistics(T min,
T max)
Deprecated.
will be removed in 2.0.0. Use
Statistics(Object, Object, Comparator) instead |
Statistics(T min,
T max,
Comparator<T> comparator) |
| Modifier and Type | Method and Description |
|---|---|
Comparator<T> |
getComparator()
Returns the comparator to be used to compare two generic values in the proper way (e.g.
|
T |
getMax()
Returns the generic object representing the max value in the statistics.
|
T |
getMin()
Returns the generic object representing the min value in the statistics.
|
@Deprecated public Statistics(T min, T max)
Statistics(Object, Object, Comparator) insteadmin - the min valuemax - the max valuepublic Statistics(T min, T max, Comparator<T> comparator)
min - the min valuemax - the max valuecomparator - a comparator to use when comparing values described by this statistics instancepublic T getMin()
T defined by the compareTo method
might not be appropriate for the actual logical type. Use
getComparator() for comparing.public T getMax()
T defined by the compareTo method
might not be appropriate for the actual logical type. Use
getComparator() for comparing.public Comparator<T> getComparator()
Copyright © 2024 The Apache Software Foundation. All rights reserved.