Class NumberByLongAggregator.SortableSumByLongAggregatorBucketList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- de.uplanet.lucy.server.auxiliaries.chart.NumberByLongAggregator.SortableSumByLongAggregatorBucketList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<SumByLongAggregatorBucket>
,Collection<SumByLongAggregatorBucket>
,List<SumByLongAggregatorBucket>
,RandomAccess
- Enclosing class:
- NumberByLongAggregator
public final class NumberByLongAggregator.SortableSumByLongAggregatorBucketList extends ArrayList<T>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<SumByLongAggregatorBucket>
byCategory()
Compare by category values.Comparator<? super T>
byCategoryRowValueNullsFirst(String p_strRow)
Compare by category row values, with nulls sorted low.Comparator<? super T>
byCategoryRowValueNullsLast(String p_strRow)
Compare by category row values, with nulls sorted high.void
sort(Comparator<? super T> 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
-
byCategory
public Comparator<SumByLongAggregatorBucket> byCategory()
Compare by category values.- Returns:
- The comparator.
-
sort
public void sort(Comparator<? super T> p_comparator)
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 T> 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
public Comparator<? super T> byCategoryRowValueNullsLast(String p_strRow)
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.
-
-