java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.InflationRate
public record InflationRate(long epoch, double foundation, double total, double validator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInflationRate(long epoch, double foundation, double total, double validator) Creates an instance of aInflationRaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefoundationrecord component.final inthashCode()Returns a hash code value for this object.static InflationRateparse(systems.comodal.jsoniter.JsonIterator ji) final StringtoString()Returns a string representation of this record class.doubletotal()Returns the value of thetotalrecord component.doubleReturns the value of thevalidatorrecord component.
-
Constructor Details
-
InflationRate
public InflationRate(long epoch, double foundation, double total, double validator) Creates an instance of aInflationRaterecord class.- Parameters:
epoch- the value for theepochrecord componentfoundation- the value for thefoundationrecord componenttotal- the value for thetotalrecord componentvalidator- the value for thevalidatorrecord component
-
-
Method Details
-
parse
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared with '=='. -
epoch
public long epoch()Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-
foundation
public double foundation()Returns the value of thefoundationrecord component.- Returns:
- the value of the
foundationrecord component
-
total
public double total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
validator
public double validator()Returns the value of thevalidatorrecord component.- Returns:
- the value of the
validatorrecord component
-