Class AbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
-
- de.uplanet.lucy.server.auxiliaries.chart.AbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
,Collection<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
,List<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
,RandomAccess
- Enclosing class:
- AbstractSumAggregatorBucket<G>
public static final class AbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointList extends ArrayList<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
A list of row values.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
byRowCaseInsensitive()
Compare byrow
(case-insensitive).Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
byRowCaseSensitive()
Compare byrow
(case-sensitive).Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
bySingleIdCaseInsensitive()
Compare by row (case-insensitive).Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
bySingleIdCaseSensitive()
Compare bysingle ID
(case-sensitive).Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
byValue()
Compare byvalue
.void
clearRowStatistics()
Clear already calculated statistics.double
getRowAverage()
Get the arithmetic mean of row values recorded, or zero if no values have been recorded.double
getRowMax()
Get the maximum row value.double
getRowMin()
Get the minimum row value.double
getRowSum()
Get the sum of all row values, or zero if no values have been recorded.void
sort(Comparator<? super de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> p_comparator)
Sorts this list according to the order induced by the specifiedComparator
.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
sort
public void sort(Comparator<? super de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> p_comparator)
Sorts this list according to the order induced by the specifiedComparator
.
-
byValue
public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> byValue()
Compare byvalue
.- Returns:
- The comparator.
-
byRowCaseSensitive
public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> byRowCaseSensitive()
Compare byrow
(case-sensitive).- Returns:
- The comparator.
-
byRowCaseInsensitive
public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> byRowCaseInsensitive()
Compare byrow
(case-insensitive).- Returns:
- The comparator.
-
bySingleIdCaseSensitive
public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> bySingleIdCaseSensitive()
Compare bysingle ID
(case-sensitive).- Returns:
- The comparator.
-
bySingleIdCaseInsensitive
public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> bySingleIdCaseInsensitive()
Compare by row (case-insensitive).- Returns:
- The comparator.
-
getRowMin
public double getRowMin()
Get the minimum row value.- Returns:
- The minimum row value.
-
getRowMax
public double getRowMax()
Get the maximum row value.- Returns:
- The maximum row value.
-
getRowSum
public double getRowSum()
Get the sum of all row values, or zero if no values have been recorded.- Returns:
- The sum of all row values.
-
getRowAverage
public double getRowAverage()
Get the arithmetic mean of row values recorded, or zero if no values have been recorded.- Returns:
- The average.
-
clearRowStatistics
public void clearRowStatistics()
Clear already calculated statistics.This method is useful in situations where the list has been modified after the statistics have been calculated.
-
-