Class NumberByStringAggregator.SortableSumByStringAggregatorBucketList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- de.uplanet.lucy.server.auxiliaries.chart.NumberByStringAggregator.SortableSumByStringAggregatorBucketList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<SumByStringAggregatorBucket>
,Collection<SumByStringAggregatorBucket>
,List<SumByStringAggregatorBucket>
,RandomAccess
- Enclosing class:
- NumberByStringAggregator
public final class NumberByStringAggregator.SortableSumByStringAggregatorBucketList extends ArrayList<T>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<SumByStringAggregatorBucket>
byCategoryNameCaseInsensitive()
Compare by category values (case-insensitive).Comparator<SumByStringAggregatorBucket>
byCategoryNameCaseSensitive()
Compare by category values (case-sensitive).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
-
byCategoryNameCaseSensitive
public Comparator<SumByStringAggregatorBucket> byCategoryNameCaseSensitive()
Compare by category values (case-sensitive).- Returns:
- The comparator.
-
byCategoryNameCaseInsensitive
public Comparator<SumByStringAggregatorBucket> byCategoryNameCaseInsensitive()
Compare by category values (case-insensitive).- 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.
-
-