Record Class SymbolAnalysisSentimentComparisonDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.SymbolAnalysisSentimentComparisonDTO
- Record Components:
normalizedPricePerformance- normalized price performancenormalizedSentiment- normalized sentimentcorrelation- correlationleadLagCorrelation- lead-lag correlationsentimentBucketDays- bucket daysarticleCount- article count
public record SymbolAnalysisSentimentComparisonDTO(List<SymbolAnalysisNormalizedPointDTO> normalizedPricePerformance, List<SymbolAnalysisSentimentPointDTO> normalizedSentiment, Double correlation, Double leadLagCorrelation, Integer sentimentBucketDays, int articleCount)
extends Record
Sentiment-comparison DTO.
- Version:
- 2.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolAnalysisSentimentComparisonDTO(List<SymbolAnalysisNormalizedPointDTO> normalizedPricePerformance, List<SymbolAnalysisSentimentPointDTO> normalizedSentiment, Double correlation, Double leadLagCorrelation, Integer sentimentBucketDays, int articleCount) Creates an instance of aSymbolAnalysisSentimentComparisonDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thearticleCountrecord component.Returns the value of thecorrelationrecord component.empty()Creates an empty DTO shell.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theleadLagCorrelationrecord component.Returns the value of thenormalizedPricePerformancerecord component.Returns the value of thenormalizedSentimentrecord component.Returns the value of thesentimentBucketDaysrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SymbolAnalysisSentimentComparisonDTO
public SymbolAnalysisSentimentComparisonDTO(List<SymbolAnalysisNormalizedPointDTO> normalizedPricePerformance, List<SymbolAnalysisSentimentPointDTO> normalizedSentiment, Double correlation, Double leadLagCorrelation, Integer sentimentBucketDays, int articleCount) Creates an instance of aSymbolAnalysisSentimentComparisonDTOrecord class.- Parameters:
normalizedPricePerformance- the value for thenormalizedPricePerformancerecord componentnormalizedSentiment- the value for thenormalizedSentimentrecord componentcorrelation- the value for thecorrelationrecord componentleadLagCorrelation- the value for theleadLagCorrelationrecord componentsentimentBucketDays- the value for thesentimentBucketDaysrecord componentarticleCount- the value for thearticleCountrecord component
-
-
Method Details
-
empty
Creates an empty DTO shell.- Returns:
SymbolAnalysisSentimentComparisonDTO
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
normalizedPricePerformance
Returns the value of thenormalizedPricePerformancerecord component.- Returns:
- the value of the
normalizedPricePerformancerecord component
-
normalizedSentiment
Returns the value of thenormalizedSentimentrecord component.- Returns:
- the value of the
normalizedSentimentrecord component
-
correlation
Returns the value of thecorrelationrecord component.- Returns:
- the value of the
correlationrecord component
-
leadLagCorrelation
Returns the value of theleadLagCorrelationrecord component.- Returns:
- the value of the
leadLagCorrelationrecord component
-
sentimentBucketDays
Returns the value of thesentimentBucketDaysrecord component.- Returns:
- the value of the
sentimentBucketDaysrecord component
-
articleCount
public int articleCount()Returns the value of thearticleCountrecord component.- Returns:
- the value of the
articleCountrecord component
-