Record Class EODEconomicEventResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODEconomicEventResponse
- Record Components:
type- event typecomparison- comparison typeperiod- reporting periodcountry- country codedate- event date-timeactual- actual valueprevious- previous valueestimate- estimated valuechange- change from previouschangePercentage- percentage change from previous
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODEconomicEventResponse(String type, String comparison, String period, String country, String date, BigDecimal actual, BigDecimal previous, BigDecimal estimate, BigDecimal change, BigDecimal changePercentage)
extends Record
implements GenericIntegrationResponse
Economic event record.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODEconomicEventResponse(String type, String comparison, String period, String country, String date, BigDecimal actual, BigDecimal previous, BigDecimal estimate, BigDecimal change, BigDecimal changePercentage) Creates an instance of aEODEconomicEventResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionactual()Returns the value of theactualrecord component.change()Returns the value of thechangerecord component.Returns the value of thechangePercentagerecord component.Returns the value of thecomparisonrecord component.country()Returns the value of thecountryrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.estimate()Returns the value of theestimaterecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns true when the payload does not identify an event type.period()Returns the value of theperiodrecord component.previous()Returns the value of thepreviousrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
EODEconomicEventResponse
public EODEconomicEventResponse(String type, String comparison, String period, String country, String date, BigDecimal actual, BigDecimal previous, BigDecimal estimate, BigDecimal change, BigDecimal changePercentage) Creates an instance of aEODEconomicEventResponserecord class.- Parameters:
type- the value for thetyperecord componentcomparison- the value for thecomparisonrecord componentperiod- the value for theperiodrecord componentcountry- the value for thecountryrecord componentdate- the value for thedaterecord componentactual- the value for theactualrecord componentprevious- the value for thepreviousrecord componentestimate- the value for theestimaterecord componentchange- the value for thechangerecord componentchangePercentage- the value for thechangePercentagerecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the payload does not identify an event type.- Specified by:
isEmptyin interfaceGenericIntegrationResponse- Returns:
- boolean
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
-
comparison
Returns the value of thecomparisonrecord component.- Returns:
- the value of the
comparisonrecord component
-
period
-
country
-
date
-
actual
-
previous
-
estimate
-
change
-
changePercentage
Returns the value of thechangePercentagerecord component.- Returns:
- the value of the
changePercentagerecord component
-