Class TickerSymbol
java.lang.Object
com.apptasticsoftware.tickersymbol.TickerSymbol
Class representing ticker symbol.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanComparison method.Get category 1.Get category 2.Get category 3.Get country.Get description of this ticker.Get exchange.Get exchange country.getSedol()Get SEDOL.Get symbol name or short name for this tickers.getType()Get type of instrument.inthashCode()Calculates hash code for this ticker.voidsetCategory1(String category1) Set category 1.voidsetCategory2(String category2) Set category 2.voidsetCategory3(String category3) Set category 3.voidsetCountry(String country) Set country.voidsetDescription(String description) Set description of this ticker.voidsetExchange(String exchange) Set exchange.voidsetExchangeCountry(String exchangeCountry) Set exchange country.voidSet SEDOL.voidSet symbol or short name for this tickers.voidSet type of instrument.
-
Constructor Details
-
TickerSymbol
public TickerSymbol()
-
-
Method Details
-
getSymbol
Get symbol name or short name for this tickers.- Returns:
- symbol
-
setSymbol
Set symbol or short name for this tickers.- Parameters:
symbol- symbol
-
getDescription
Get description of this ticker.- Returns:
- description
-
setDescription
Set description of this ticker.- Parameters:
description- description
-
getType
Get type of instrument.- Returns:
- type
-
setType
Set type of instrument.- Parameters:
type- type
-
getCountry
Get country.- Returns:
- country
-
setCountry
Set country.- Parameters:
country- country
-
getExchange
Get exchange.- Returns:
- exchange
-
setExchange
Set exchange.- Parameters:
exchange- exchange
-
getExchangeCountry
Get exchange country.- Returns:
- exchangeCountry
-
setExchangeCountry
Set exchange country.- Parameters:
exchangeCountry- exchange country
-
getCategory1
Get category 1.- Returns:
- category1
-
setCategory1
Set category 1.- Parameters:
category1- category1
-
getCategory2
Get category 2.- Returns:
- category2
-
setCategory2
Set category 2.- Parameters:
category2- category2
-
getCategory3
Get category 3.- Returns:
- category3
-
setCategory3
Set category 3.- Parameters:
category3- category3
-
getSedol
Get SEDOL.- Returns:
- SEDOL
-
setSedol
Set SEDOL.- Parameters:
sedol- sedol
-
equals
Comparison method. -
hashCode
public int hashCode()Calculates hash code for this ticker.
-