Record Class EODSentimentPointResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODSentimentPointResponse
- Record Components:
date- provider date bucketnormalized- normalized sentiment score when availablepositive- positive contribution when availablenegative- negative contribution when availableneutral- neutral contribution when availablecount- article count when availablerawPayload- full provider point payload
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODSentimentPointResponse(String date, BigDecimal normalized, BigDecimal positive, BigDecimal negative, BigDecimal neutral, Integer count, com.fasterxml.jackson.databind.JsonNode rawPayload)
extends Record
implements GenericIntegrationResponse
Sentiment point for a single ticker and date bucket.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODSentimentPointResponse(String date, BigDecimal normalized, BigDecimal positive, BigDecimal negative, BigDecimal neutral, Integer count, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODSentimentPointResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.date()Returns the value of thedaterecord component.final 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 dated sentiment value.negative()Returns the value of thenegativerecord component.neutral()Returns the value of theneutralrecord component.Returns the value of thenormalizedrecord 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
-
EODSentimentPointResponse
public EODSentimentPointResponse(String date, BigDecimal normalized, BigDecimal positive, BigDecimal negative, BigDecimal neutral, Integer count, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODSentimentPointResponserecord class.- Parameters:
date- the value for thedaterecord componentnormalized- the value for thenormalizedrecord componentpositive- the value for thepositiverecord componentnegative- the value for thenegativerecord componentneutral- the value for theneutralrecord componentcount- the value for thecountrecord componentrawPayload- the value for therawPayloadrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the provider did not return any dated sentiment value.- 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). -
date
-
normalized
Returns the value of thenormalizedrecord component.- Returns:
- the value of the
normalizedrecord component
-
positive
-
negative
-
neutral
-
count
-
rawPayload
public com.fasterxml.jackson.databind.JsonNode rawPayload()Returns the value of therawPayloadrecord component.- Returns:
- the value of the
rawPayloadrecord component
-