Record Class EstateReport.CategoryTotal
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateReport.CategoryTotal
- Record Components:
category- the categorycount- the number of findingsmonthlySavingByCurrency- the sum of priced monthly effects per currency (positive = saving)unpriced- the number of unpriced findings
- Enclosing class:
EstateReport
public static record EstateReport.CategoryTotal(FindingCategory category, int count, Map<String, BigDecimal> monthlySavingByCurrency, int unpriced)
extends Record
Totals for one category.
-
Constructor Summary
ConstructorsConstructorDescriptionCategoryTotal(FindingCategory category, int count, Map<String, BigDecimal> monthlySavingByCurrency, int unpriced) Copies the map. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themonthlySavingByCurrencyrecord component.final StringtoString()Returns a string representation of this record class.intunpriced()Returns the value of theunpricedrecord component.
-
Constructor Details
-
CategoryTotal
public CategoryTotal(FindingCategory category, int count, Map<String, BigDecimal> monthlySavingByCurrency, int unpriced) Copies the map.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
category
-
count
-
monthlySavingByCurrency
Returns the value of themonthlySavingByCurrencyrecord component.- Returns:
- the value of the
monthlySavingByCurrencyrecord component
-
unpriced
-