Record Class SymbolAnalysisContextDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.SymbolAnalysisContextDTO
- Record Components:
symbol- symbolrequestedAlias- requested aliasresolvedAlias- resolved aliasdataSource- data sourcetimeInterval- time intervalstartDateTime- start date timeendDateTime- end date timerequestedBars- requested barsresolvedBars- resolved barsusedFallbackAlias- used fallback aliasusedFallbackWindow- used fallback window
public record SymbolAnalysisContextDTO(SymbolDTO symbol, SymbolAliasDTO requestedAlias, SymbolAliasDTO resolvedAlias, EnumDisplay dataSource, EnumDisplay timeInterval, String startDateTime, String endDateTime, int requestedBars, int resolvedBars, boolean usedFallbackAlias, boolean usedFallbackWindow)
extends Record
DTO for resolved symbol-analysis context.
- Version:
- 2.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolAnalysisContextDTO(SymbolDTO symbol, SymbolAliasDTO requestedAlias, SymbolAliasDTO resolvedAlias, EnumDisplay dataSource, EnumDisplay timeInterval, String startDateTime, String endDateTime, int requestedBars, int resolvedBars, boolean usedFallbackAlias, boolean usedFallbackWindow) Creates an instance of aSymbolAnalysisContextDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataSourcerecord component.static SymbolAnalysisContextDTOempty()Creates an empty DTO shell.Returns the value of theendDateTimerecord component.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 therequestedAliasrecord component.intReturns the value of therequestedBarsrecord component.Returns the value of theresolvedAliasrecord component.intReturns the value of theresolvedBarsrecord component.Returns the value of thestartDateTimerecord component.symbol()Returns the value of thesymbolrecord component.Returns the value of thetimeIntervalrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theusedFallbackAliasrecord component.booleanReturns the value of theusedFallbackWindowrecord component.
-
Constructor Details
-
SymbolAnalysisContextDTO
public SymbolAnalysisContextDTO(SymbolDTO symbol, SymbolAliasDTO requestedAlias, SymbolAliasDTO resolvedAlias, EnumDisplay dataSource, EnumDisplay timeInterval, String startDateTime, String endDateTime, int requestedBars, int resolvedBars, boolean usedFallbackAlias, boolean usedFallbackWindow) Creates an instance of aSymbolAnalysisContextDTOrecord class.- Parameters:
symbol- the value for thesymbolrecord componentrequestedAlias- the value for therequestedAliasrecord componentresolvedAlias- the value for theresolvedAliasrecord componentdataSource- the value for thedataSourcerecord componenttimeInterval- the value for thetimeIntervalrecord componentstartDateTime- the value for thestartDateTimerecord componentendDateTime- the value for theendDateTimerecord componentrequestedBars- the value for therequestedBarsrecord componentresolvedBars- the value for theresolvedBarsrecord componentusedFallbackAlias- the value for theusedFallbackAliasrecord componentusedFallbackWindow- the value for theusedFallbackWindowrecord component
-
-
Method Details
-
empty
Creates an empty DTO shell.- Returns:
SymbolAnalysisContextDTO
-
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. -
symbol
-
requestedAlias
Returns the value of therequestedAliasrecord component.- Returns:
- the value of the
requestedAliasrecord component
-
resolvedAlias
Returns the value of theresolvedAliasrecord component.- Returns:
- the value of the
resolvedAliasrecord component
-
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-
timeInterval
Returns the value of thetimeIntervalrecord component.- Returns:
- the value of the
timeIntervalrecord component
-
startDateTime
Returns the value of thestartDateTimerecord component.- Returns:
- the value of the
startDateTimerecord component
-
endDateTime
Returns the value of theendDateTimerecord component.- Returns:
- the value of the
endDateTimerecord component
-
requestedBars
public int requestedBars()Returns the value of therequestedBarsrecord component.- Returns:
- the value of the
requestedBarsrecord component
-
resolvedBars
public int resolvedBars()Returns the value of theresolvedBarsrecord component.- Returns:
- the value of the
resolvedBarsrecord component
-
usedFallbackAlias
public boolean usedFallbackAlias()Returns the value of theusedFallbackAliasrecord component.- Returns:
- the value of the
usedFallbackAliasrecord component
-
usedFallbackWindow
public boolean usedFallbackWindow()Returns the value of theusedFallbackWindowrecord component.- Returns:
- the value of the
usedFallbackWindowrecord component
-