Class SumByGroup


  • public class SumByGroup
    extends Object

    Holds the sum of numeric metadata class 'on' grouped by the values in metadata class 'by'.

    Since:
    15.8
    • Field Detail

      • by

        private final String by

        The metadata class sums are grouped by.

        Since:
        15.8
      • on

        private final String on

        The numeric metadata class being summed.

        Since:
        15.8
      • groupAndSums

        private final Map<String,​Double> groupAndSums

        Holds the sum of numeric values in a group

        The key is the group, which is a single value from the metadata class by. The value is the sum of all numeric metadata values in the group for metadata class on.

        Since:
        15.8
    • Constructor Detail

    • Method Detail

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getBy

        public String getBy()

        The metadata class sums are grouped by.

        Since:
        15.8
      • getOn

        public String getOn()

        The numeric metadata class being summed.

        Since:
        15.8
      • getGroupAndSums

        public Map<String,​Double> getGroupAndSums()

        Holds the sum of numeric values in a group

        The key is the group, which is a single value from the metadata class by. The value is the sum of all numeric metadata values in the group for metadata class on.

        Since:
        15.8