Record Class SymbolAnalysisSentimentPointDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.SymbolAnalysisSentimentPointDTO
- Record Components:
date- datenormalizedSentiment- normalized sentimentlabel- labelarticleCount- article count
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolAnalysisSentimentPointDTO(String date, double normalizedSentiment, String label, int articleCount) Creates an instance of aSymbolAnalysisSentimentPointDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thearticleCountrecord 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.label()Returns the value of thelabelrecord component.doubleReturns the value of thenormalizedSentimentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SymbolAnalysisSentimentPointDTO
public SymbolAnalysisSentimentPointDTO(String date, double normalizedSentiment, String label, int articleCount) Creates an instance of aSymbolAnalysisSentimentPointDTOrecord class.- Parameters:
date- the value for thedaterecord componentnormalizedSentiment- the value for thenormalizedSentimentrecord componentlabel- the value for thelabelrecord componentarticleCount- the value for thearticleCountrecord component
-
-
Method Details
-
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. -
date
-
normalizedSentiment
public double normalizedSentiment()Returns the value of thenormalizedSentimentrecord component.- Returns:
- the value of the
normalizedSentimentrecord component
-
label
-
articleCount
public int articleCount()Returns the value of thearticleCountrecord component.- Returns:
- the value of the
articleCountrecord component
-