Class SumByGroup
- java.lang.Object
-
- com.funnelback.publicui.search.model.padre.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 groupprivate 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 groupjava.lang.String
getOn()
The numeric metadata class being summed.int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-