Record Class EODNewsSentimentResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODNewsSentimentResponse
- Record Components:
polarity- aggregate sentiment polaritynegative- negative sentiment scoreneutral- neutral sentiment scorepositive- positive sentiment scorerawPayload- full provider payload
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODNewsSentimentResponse(BigDecimal polarity, BigDecimal negative, BigDecimal neutral, BigDecimal positive, com.fasterxml.jackson.databind.JsonNode rawPayload)
extends Record
implements GenericIntegrationResponse
Financial news article sentiment payload.
- Version:
- 2.0.2
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODNewsSentimentResponse(BigDecimal polarity, BigDecimal negative, BigDecimal neutral, BigDecimal positive, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODNewsSentimentResponserecord 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 no sentiment values were returned.negative()Returns the value of thenegativerecord component.neutral()Returns the value of theneutralrecord component.polarity()Returns the value of thepolarityrecord component.positive()Returns the value of thepositiverecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of therawPayloadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EODNewsSentimentResponse
public EODNewsSentimentResponse(BigDecimal polarity, BigDecimal negative, BigDecimal neutral, BigDecimal positive, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODNewsSentimentResponserecord class.- Parameters:
polarity- the value for thepolarityrecord componentnegative- the value for thenegativerecord componentneutral- the value for theneutralrecord componentpositive- the value for thepositiverecord componentrawPayload- the value for therawPayloadrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when no sentiment values 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). -
polarity
-
negative
-
neutral
-
positive
-
rawPayload
public com.fasterxml.jackson.databind.JsonNode rawPayload()Returns the value of therawPayloadrecord component.- Returns:
- the value of the
rawPayloadrecord component
-