Class NumberByDoubleAggregator.SortableSumByDoubleAggregatorBucketList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
de.uplanet.lucy.server.auxiliaries.chart.NumberByDoubleAggregator.SortableSumByDoubleAggregatorBucketList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<SumByDoubleAggregatorBucket>
,Collection<SumByDoubleAggregatorBucket>
,List<SumByDoubleAggregatorBucket>
,RandomAccess
- Enclosing class:
- NumberByDoubleAggregator
public final class NumberByDoubleAggregator.SortableSumByDoubleAggregatorBucketList
extends ArrayList<T>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCompare by category values.Comparator<? super SumByDoubleAggregatorBucket>
byCategoryRowValueNullsFirst
(String p_strRow) Compare by category row values, with nulls sorted low.Comparator<? super SumByDoubleAggregatorBucket>
byCategoryRowValueNullsLast
(String p_strRow) Compare by category row values, with nulls sorted high.void
sort
(Comparator<? super SumByDoubleAggregatorBucket> 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 Details
-
byCategory
Compare by category values.- Returns:
- The comparator.
-
sort
Sorts this list according to the order induced by the specifiedComparator
.- Specified by:
sort
in interfaceList<T extends AbstractSumAggregatorBucket<?>>
- Overrides:
sort
in classArrayList<T extends AbstractSumAggregatorBucket<?>>
-
byCategoryRowValueNullsFirst
public Comparator<? super SumByDoubleAggregatorBucket> byCategoryRowValueNullsFirst(String p_strRow) Compare by category row values, with nulls sorted low.Example
|- cat1 -| | |- row1 | |- row2 2 <- | |- row3 | |- cat2 -| | |- row2 1 <- | |- row4 | |- cat3 -| | |- row1 | |- row2 |
sorted byrow2
will result in[cat3, ... cat2, ... cat1]
.- Returns:
- The comparator.
-
byCategoryRowValueNullsLast
Compare by category row values, with nulls sorted high.Example
|- cat1 -| | |- row1 | |- row2 2 <- | |- row3 | |- cat2 -| | |- row2 1 <- | |- row4 | |- cat3 -| | |- row1 | |- row2 |
sorted byrow2
will result in[cat2, ... cat1, ... cat3]
.- Returns:
- The comparator.
-