Record Class SymbolAnalysisContextDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.SymbolAnalysisContextDTO
Record Components:
symbol - symbol
requestedAlias - requested alias
resolvedAlias - resolved alias
dataSource - data source
timeInterval - time interval
startDateTime - start date time
endDateTime - end date time
requestedBars - requested bars
resolvedBars - resolved bars
usedFallbackAlias - used fallback alias
usedFallbackWindow - 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 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 a SymbolAnalysisContextDTO record class.
      Parameters:
      symbol - the value for the symbol record component
      requestedAlias - the value for the requestedAlias record component
      resolvedAlias - the value for the resolvedAlias record component
      dataSource - the value for the dataSource record component
      timeInterval - the value for the timeInterval record component
      startDateTime - the value for the startDateTime record component
      endDateTime - the value for the endDateTime record component
      requestedBars - the value for the requestedBars record component
      resolvedBars - the value for the resolvedBars record component
      usedFallbackAlias - the value for the usedFallbackAlias record component
      usedFallbackWindow - the value for the usedFallbackWindow record component
  • Method Details

    • empty

      public static SymbolAnalysisContextDTO empty()
      Creates an empty DTO shell.
      Returns:
      SymbolAnalysisContextDTO
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • symbol

      public SymbolDTO symbol()
      Returns the value of the symbol record component.
      Returns:
      the value of the symbol record component
    • requestedAlias

      public SymbolAliasDTO requestedAlias()
      Returns the value of the requestedAlias record component.
      Returns:
      the value of the requestedAlias record component
    • resolvedAlias

      public SymbolAliasDTO resolvedAlias()
      Returns the value of the resolvedAlias record component.
      Returns:
      the value of the resolvedAlias record component
    • dataSource

      public EnumDisplay dataSource()
      Returns the value of the dataSource record component.
      Returns:
      the value of the dataSource record component
    • timeInterval

      public EnumDisplay timeInterval()
      Returns the value of the timeInterval record component.
      Returns:
      the value of the timeInterval record component
    • startDateTime

      public String startDateTime()
      Returns the value of the startDateTime record component.
      Returns:
      the value of the startDateTime record component
    • endDateTime

      public String endDateTime()
      Returns the value of the endDateTime record component.
      Returns:
      the value of the endDateTime record component
    • requestedBars

      public int requestedBars()
      Returns the value of the requestedBars record component.
      Returns:
      the value of the requestedBars record component
    • resolvedBars

      public int resolvedBars()
      Returns the value of the resolvedBars record component.
      Returns:
      the value of the resolvedBars record component
    • usedFallbackAlias

      public boolean usedFallbackAlias()
      Returns the value of the usedFallbackAlias record component.
      Returns:
      the value of the usedFallbackAlias record component
    • usedFallbackWindow

      public boolean usedFallbackWindow()
      Returns the value of the usedFallbackWindow record component.
      Returns:
      the value of the usedFallbackWindow record component