Record Class SymbolAnalysisBarDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.SymbolAnalysisBarDTO
- Record Components:
date- dateopen- openhigh- highlow- lowclose- closevolume- volumesimpleReturnPercent- simple return percentlogReturn- log returntrueRange- true rangebodySize- body size
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolAnalysisBarDTO(String date, double open, double high, double low, double close, long volume, Double simpleReturnPercent, Double logReturn, double trueRange, double bodySize) Creates an instance of aSymbolAnalysisBarDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublebodySize()Returns the value of thebodySizerecord component.doubleclose()Returns the value of thecloserecord 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.doublehigh()Returns the value of thehighrecord component.Returns the value of thelogReturnrecord component.doublelow()Returns the value of thelowrecord component.doubleopen()Returns the value of theopenrecord component.Returns the value of thesimpleReturnPercentrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetrueRangerecord component.longvolume()Returns the value of thevolumerecord component.
-
Constructor Details
-
SymbolAnalysisBarDTO
public SymbolAnalysisBarDTO(String date, double open, double high, double low, double close, long volume, Double simpleReturnPercent, Double logReturn, double trueRange, double bodySize) Creates an instance of aSymbolAnalysisBarDTOrecord class.- Parameters:
date- the value for thedaterecord componentopen- the value for theopenrecord componenthigh- the value for thehighrecord componentlow- the value for thelowrecord componentclose- the value for thecloserecord componentvolume- the value for thevolumerecord componentsimpleReturnPercent- the value for thesimpleReturnPercentrecord componentlogReturn- the value for thelogReturnrecord componenttrueRange- the value for thetrueRangerecord componentbodySize- the value for thebodySizerecord 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
-
open
-
high
-
low
-
close
-
volume
-
simpleReturnPercent
Returns the value of thesimpleReturnPercentrecord component.- Returns:
- the value of the
simpleReturnPercentrecord component
-
logReturn
-
trueRange
-
bodySize
-