Record Class EODNewsWordWeightsResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODNewsWordWeightsResponse
- Record Components:
data- weighted words keyed by termnewsFound- total articles matchednewsProcessed- articles successfully processednextPageUrl- provider next-page URLrawPayload- full provider payload
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODNewsWordWeightsResponse(Map<String, BigDecimal> data, Integer newsFound, Integer newsProcessed, String nextPageUrl, com.fasterxml.jackson.databind.JsonNode rawPayload)
extends Record
implements GenericIntegrationResponse
News word-weight payload.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODNewsWordWeightsResponse(Map<String, BigDecimal> data, Integer newsFound, Integer newsProcessed, String nextPageUrl, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODNewsWordWeightsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord 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 no weighted-word data was returned.Returns the value of thenewsFoundrecord component.Returns the value of thenewsProcessedrecord component.Returns the value of thenextPageUrlrecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of therawPayloadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EODNewsWordWeightsResponse
public EODNewsWordWeightsResponse(Map<String, BigDecimal> data, Integer newsFound, Integer newsProcessed, String nextPageUrl, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODNewsWordWeightsResponserecord class.- Parameters:
data- the value for thedatarecord componentnewsFound- the value for thenewsFoundrecord componentnewsProcessed- the value for thenewsProcessedrecord componentnextPageUrl- the value for thenextPageUrlrecord componentrawPayload- the value for therawPayloadrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when no weighted-word data was 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). -
data
-
newsFound
-
newsProcessed
Returns the value of thenewsProcessedrecord component.- Returns:
- the value of the
newsProcessedrecord component
-
nextPageUrl
Returns the value of thenextPageUrlrecord component.- Returns:
- the value of the
nextPageUrlrecord component
-
rawPayload
public com.fasterxml.jackson.databind.JsonNode rawPayload()Returns the value of therawPayloadrecord component.- Returns:
- the value of the
rawPayloadrecord component
-