Class SumByGroup
- java.lang.Object
-
- com.funnelback.publicui.search.model.padre.SumByGroup
-
public class SumByGroup extends java.lang.ObjectHolds 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.StringbyThe metadata class sums are grouped by.private java.util.Map<java.lang.String,java.lang.Double>groupAndSumsHolds the sum of numeric values in a groupprivate java.lang.StringonThe 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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetBy()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 groupjava.lang.StringgetOn()The numeric metadata class being summed.inthashCode()java.lang.StringtoString()
-
-
-
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 classon.- Since:
- 15.8
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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 classon.- Since:
- 15.8
-
-