Class SumByGroup


  • public class SumByGroup
    extends java.lang.Object

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

    Since:
    15.8
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String by
      The metadata class sums are grouped by.
      private java.util.Map<java.lang.String,​java.lang.Double> groupAndSums
      Holds the sum of numeric values in a group
      private java.lang.String on
      The numeric metadata class being summed.
    • Constructor Summary

      Constructors 
      Constructor Description
      SumByGroup​(java.lang.String by, java.lang.String on)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getBy()
      The metadata class sums are grouped by.
      java.util.Map<java.lang.String,​java.lang.Double> getGroupAndSums()
      Holds the sum of numeric values in a group
      java.lang.String getOn()
      The numeric metadata class being summed.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • by

        private final java.lang.String by

        The metadata class sums are grouped by.

        Since:
        15.8
      • on

        private final java.lang.String on

        The numeric metadata class being summed.

        Since:
        15.8
      • groupAndSums

        private final java.util.Map<java.lang.String,​java.lang.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

      • SumByGroup

        public SumByGroup​(java.lang.String by,
                          java.lang.String on)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBy

        public java.lang.String getBy()

        The metadata class sums are grouped by.

        Since:
        15.8
      • getOn

        public java.lang.String getOn()

        The numeric metadata class being summed.

        Since:
        15.8
      • getGroupAndSums

        public java.util.Map<java.lang.String,​java.lang.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