Class NumberByDateAggregator.SortableSumByDateAggregatorBucketList

    • Method Detail

      • 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 by row2 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 by row2 will result in [cat2, ... cat1, ... cat3].

        Returns:
        The comparator.