Record Class EODSentimentResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODSentimentResponse
- Record Components:
sentimentsBySymbol- sentiment points grouped by symbol
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODSentimentResponse(Map<String, List<EODSentimentPointResponse>> sentimentsBySymbol)
extends Record
implements GenericIntegrationResponse
Sentiment payload keyed by provider symbol.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODSentimentResponse(Map<String, List<EODSentimentPointResponse>> sentimentsBySymbol) Creates an instance of aEODSentimentResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns true when the provider did not return any grouped sentiment data.Returns the value of thesentimentsBySymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EODSentimentResponse
Creates an instance of aEODSentimentResponserecord class.- Parameters:
sentimentsBySymbol- the value for thesentimentsBySymbolrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the provider did not return any grouped sentiment data.- 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). -
sentimentsBySymbol
Returns the value of thesentimentsBySymbolrecord component.- Returns:
- the value of the
sentimentsBySymbolrecord component
-