Class StockData


  • public class StockData
    extends Object
    StockData
    • Constructor Detail

      • StockData

        public StockData()
    • Method Detail

      • marketIdentifier

        public StockData marketIdentifier​(String marketIdentifier)
      • getMarketIdentifier

        public String getMarketIdentifier()
        The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded.
        Returns:
        marketIdentifier
      • setMarketIdentifier

        public void setMarketIdentifier​(String marketIdentifier)
        The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded.
        Parameters:
        marketIdentifier -
      • getStockNumber

        public String getStockNumber()
        The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).
        Returns:
        stockNumber
      • setStockNumber

        public void setStockNumber​(String stockNumber)
        The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).
        Parameters:
        stockNumber -
      • getTickerSymbol

        public String getTickerSymbol()
        The stock ticker symbol.
        Returns:
        tickerSymbol
      • setTickerSymbol

        public void setTickerSymbol​(String tickerSymbol)
        The stock ticker symbol.
        Parameters:
        tickerSymbol -
      • equals

        public boolean equals​(Object o)
        Return true if this StockData object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static StockData fromJson​(String jsonString)
                                  throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of StockData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of StockData
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to StockData
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of StockData to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException