Record Class EODEconomicEventResponse

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODEconomicEventResponse
Record Components:
type - event type
comparison - comparison type
period - reporting period
country - country code
date - event date-time
actual - actual value
previous - previous value
estimate - estimated value
change - change from previous
changePercentage - 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 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 a EODEconomicEventResponse record class.
      Parameters:
      type - the value for the type record component
      comparison - the value for the comparison record component
      period - the value for the period record component
      country - the value for the country record component
      date - the value for the date record component
      actual - the value for the actual record component
      previous - the value for the previous record component
      estimate - the value for the estimate record component
      change - the value for the change record component
      changePercentage - the value for the changePercentage record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true when the payload does not identify an event type.
      Specified by:
      isEmpty in interface GenericIntegrationResponse
      Returns:
      boolean
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • comparison

      public String comparison()
      Returns the value of the comparison record component.
      Returns:
      the value of the comparison record component
    • period

      public String period()
      Returns the value of the period record component.
      Returns:
      the value of the period record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • date

      public String date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • actual

      public BigDecimal actual()
      Returns the value of the actual record component.
      Returns:
      the value of the actual record component
    • previous

      public BigDecimal previous()
      Returns the value of the previous record component.
      Returns:
      the value of the previous record component
    • estimate

      public BigDecimal estimate()
      Returns the value of the estimate record component.
      Returns:
      the value of the estimate record component
    • change

      public BigDecimal change()
      Returns the value of the change record component.
      Returns:
      the value of the change record component
    • changePercentage

      public BigDecimal changePercentage()
      Returns the value of the changePercentage record component.
      Returns:
      the value of the changePercentage record component