Record Class SymbolAnalysisProfileDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.dto.services.symbolanalysis.SymbolAnalysisProfileDTO
Record Components:
category - registry category
ticker - symbol ticker
exchange - exchange value
website - issuer or fund website
description - issuer or fund description
sourceUrl - page URL used for the metadata
All Implemented Interfaces:
GenericIntegrationDTO

public record SymbolAnalysisProfileDTO(String category, String ticker, String exchange, String website, String description, String sourceUrl) extends Record implements GenericIntegrationDTO
Profile metadata extracted from StockAnalysis symbol pages.
Version:
2.0.2
Author:
Stephen Prizio
  • Constructor Details

    • SymbolAnalysisProfileDTO

      public SymbolAnalysisProfileDTO(String category, String ticker, String exchange, String website, String description, String sourceUrl)
      Creates an instance of a SymbolAnalysisProfileDTO record class.
      Parameters:
      category - the value for the category record component
      ticker - the value for the ticker record component
      exchange - the value for the exchange record component
      website - the value for the website record component
      description - the value for the description record component
      sourceUrl - the value for the sourceUrl record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true when no profile metadata was extracted.
      Specified by:
      isEmpty in interface GenericIntegrationDTO
      Returns:
      boolean
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • ticker

      public String ticker()
      Returns the value of the ticker record component.
      Returns:
      the value of the ticker record component
    • exchange

      public String exchange()
      Returns the value of the exchange record component.
      Returns:
      the value of the exchange record component
    • website

      public String website()
      Returns the value of the website record component.
      Returns:
      the value of the website record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • sourceUrl

      public String sourceUrl()
      Returns the value of the sourceUrl record component.
      Returns:
      the value of the sourceUrl record component