Record Class StrategySignalDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.StrategySignalDTO
- Record Components:
strategyReferenceCode- strategy reference codelabel- labelsignalAsOfDate- signal as-of datestate- stateconfidence- confidencereason- reasonmetrics- metrics
-
Constructor Summary
ConstructorsConstructorDescriptionStrategySignalDTO(String strategyReferenceCode, String label, String signalAsOfDate, EnumDisplay state, double confidence, String reason, Map<String, String> metrics) Creates an instance of aStrategySignalDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconfidencerecord 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.metrics()Returns the value of themetricsrecord component.reason()Returns the value of thereasonrecord component.Returns the value of thesignalAsOfDaterecord component.state()Returns the value of thestaterecord component.Returns the value of thestrategyReferenceCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StrategySignalDTO
public StrategySignalDTO(String strategyReferenceCode, String label, String signalAsOfDate, EnumDisplay state, double confidence, String reason, Map<String, String> metrics) Creates an instance of aStrategySignalDTOrecord class.- Parameters:
strategyReferenceCode- the value for thestrategyReferenceCoderecord componentlabel- the value for thelabelrecord componentsignalAsOfDate- the value for thesignalAsOfDaterecord componentstate- the value for thestaterecord componentconfidence- the value for theconfidencerecord componentreason- the value for thereasonrecord componentmetrics- the value for themetricsrecord 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. -
strategyReferenceCode
Returns the value of thestrategyReferenceCoderecord component.- Returns:
- the value of the
strategyReferenceCoderecord component
-
label
-
signalAsOfDate
Returns the value of thesignalAsOfDaterecord component.- Returns:
- the value of the
signalAsOfDaterecord component
-
state
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
reason
-
metrics
-