Record Class EODSearchResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODSearchResponse
- Record Components:
code- ticker symbolexchange- exchange codename- instrument nametype- asset typecountry- exchange countrycurrency- trading currencyisin- ISIN when availablepreviousClose- previous close pricepreviousCloseDate- previous close dateisPrimary- whether the hit is the primary listing
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODSearchResponse(String code, String exchange, String name, String type, String country, String currency, String isin, BigDecimal previousClose, String previousCloseDate, Boolean isPrimary)
extends Record
implements GenericIntegrationResponse
Search result returned by the EOD search endpoint.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.country()Returns the value of thecountryrecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.exchange()Returns the value of theexchangerecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns true when the provider did not return an instrument code.isin()Returns the value of theisinrecord component.Returns the value of theisPrimaryrecord component.name()Returns the value of thenamerecord component.Returns the value of thepreviousCloserecord component.Returns the value of thepreviousCloseDaterecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
EODSearchResponse
public EODSearchResponse(String code, String exchange, String name, String type, String country, String currency, String isin, BigDecimal previousClose, String previousCloseDate, Boolean isPrimary) Creates an instance of aEODSearchResponserecord class.- Parameters:
code- the value for thecoderecord componentexchange- the value for theexchangerecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentcountry- the value for thecountryrecord componentcurrency- the value for thecurrencyrecord componentisin- the value for theisinrecord componentpreviousClose- the value for thepreviousCloserecord componentpreviousCloseDate- the value for thepreviousCloseDaterecord componentisPrimary- the value for theisPrimaryrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the provider did not return an instrument code.- 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). -
code
-
exchange
-
name
-
type
-
country
-
currency
-
isin
-
previousClose
Returns the value of thepreviousCloserecord component.- Returns:
- the value of the
previousCloserecord component
-
previousCloseDate
Returns the value of thepreviousCloseDaterecord component.- Returns:
- the value of the
previousCloseDaterecord component
-
isPrimary
-