Record Class EODCalendarTrendsResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODCalendarTrendsResponse
- Record Components:
type- provider payload typedescription- provider descriptionfrom- range startto- range endsymbols- requested symbols when symbol mode is usedtrends- trend records
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODCalendarTrendsResponse(String type, String description, String from, String to, String symbols, List<EODCalendarTrendEntryResponse> trends)
extends Record
implements GenericIntegrationResponse
Earnings-trends calendar payload.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODCalendarTrendsResponse(String type, String description, String from, String to, String symbols, List<EODCalendarTrendEntryResponse> trends) Creates an instance of aEODCalendarTrendsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns true when no trend records were returned.symbols()Returns the value of thesymbolsrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.trends()Returns the value of thetrendsrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
EODCalendarTrendsResponse
public EODCalendarTrendsResponse(String type, String description, String from, String to, String symbols, List<EODCalendarTrendEntryResponse> trends) Creates an instance of aEODCalendarTrendsResponserecord class.- Parameters:
type- the value for thetyperecord componentdescription- the value for thedescriptionrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentsymbols- the value for thesymbolsrecord componenttrends- the value for thetrendsrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when no trend records were returned.- 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
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
from
-
to
-
symbols
-
trends
-