Record Class EstateReport.SavingTotal
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateReport.SavingTotal
- Record Components:
monthly- the expected monthly savinglow- the low endhigh- the high endfindings- the number of findings counted
- Enclosing class:
EstateReport
public static record EstateReport.SavingTotal(BigDecimal monthly, BigDecimal low, BigDecimal high, int findings)
extends Record
An addressable saving in one currency.
-
Constructor Summary
ConstructorsConstructorDescriptionSavingTotal(BigDecimal monthly, BigDecimal low, BigDecimal high, int findings) Creates an instance of aSavingTotalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfindings()Returns the value of thefindingsrecord component.final inthashCode()Returns a hash code value for this object.high()Returns the value of thehighrecord component.low()Returns the value of thelowrecord component.monthly()Returns the value of themonthlyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
monthly
-
low
-
high
-
findings
-