A C G M Q R S T

A

addQuoteAgent(QuoteAgent) - Method in class com.sun.tdk.sampleapi.StockInfoManager
Adds a QuoteAgent to the StockInfoManager lookup table.

C

com.sun.tdk.sampleapi - package com.sun.tdk.sampleapi
Provides classes and interface for stock quotes.
convert(int) - Static method in class com.sun.tdk.sampleapi.Quote
Convert an int to a String with the decimal placed back in (divide by 10000).

G

getChange() - Method in class com.sun.tdk.sampleapi.Quote
Returns the change in the stock in 1/10000 of a dollar.
getDefault() - Static method in class com.sun.tdk.sampleapi.StockInfoManager
Gets the default StockInfoManager.
getHigh() - Method in class com.sun.tdk.sampleapi.Quote
Returns the 52-week high for the stock.
getLow() - Method in class com.sun.tdk.sampleapi.Quote
Returns the 52-week low for the stock.
getName() - Method in class com.sun.tdk.sampleapi.StockSymbol
Returns the name of the stock.
getName() - Method in class com.sun.tdk.sampleapi.Quote
Returns the name of the stock.
getNested() - Method in class com.sun.tdk.sampleapi.GetQuoteException
Gets the nested exception.
getOpen() - Method in class com.sun.tdk.sampleapi.Quote
Returns the opening price of the stock.
getPrevious() - Method in class com.sun.tdk.sampleapi.Quote
Returns the previous high for the stock.
getPrice() - Method in class com.sun.tdk.sampleapi.Quote
Returns the price of the last trade of the stock.
getQuote() - Method in class com.sun.tdk.sampleapi.StockSymbol
Gets the current quote of the stock.
getQuoteAgents() - Method in class com.sun.tdk.sampleapi.StockInfoManager
Gets an enumeration of all installed QuoteAgents in the same order they were added to the StockInfoManager.
GetQuoteException - exception com.sun.tdk.sampleapi.GetQuoteException.
This exception may be thrown by methods that have detected an i/o exception while retrieving requested stock information.
GetQuoteException(String, Exception) - Constructor for class com.sun.tdk.sampleapi.GetQuoteException
Constructs a GetQuoteException with the specified detail message and nested exception.
getStock(String) - Method in class com.sun.tdk.sampleapi.StockInfoManager
Creates a StockSymbol object for the specified symbol.
getStock(String) - Method in interface com.sun.tdk.sampleapi.QuoteAgent
Gets a StockSymbol object for the specified symbol.
getStringChange() - Method in class com.sun.tdk.sampleapi.Quote
Returns the string representation of change with the decimal placed back in the correct position.
getStringHigh() - Method in class com.sun.tdk.sampleapi.Quote
Returns the String representation of the 52-week high with the decimal placed back in the correct position.
getStringLow() - Method in class com.sun.tdk.sampleapi.Quote
Returns the String representation of the 52-week low with the decimal placed back in the correct position.
getStringOpen() - Method in class com.sun.tdk.sampleapi.Quote
Returns the String representation of the opening price with the decimal placed back in the correct position.
getStringPrevious() - Method in class com.sun.tdk.sampleapi.Quote
Returns the String representation of previous with the decimal placed back in the correct position.
getStringPrice() - Method in class com.sun.tdk.sampleapi.Quote
Returns the string representation of the price with the decimal placed back in the correct position.
getTime() - Method in class com.sun.tdk.sampleapi.Quote
Returns the time of the last trade.
getVisualComponent() - Method in class com.sun.tdk.sampleapi.StockSymbol
Gets a visual representation of the stock.

M

makeInt(String) - Static method in class com.sun.tdk.sampleapi.Quote
Takes a String representation of a floating point number and makes an int out of it.

Q

Quote - class com.sun.tdk.sampleapi.Quote.
Represents (immutable) stock quote.
Quote(String, Date, int, int, int, int, int, int) - Constructor for class com.sun.tdk.sampleapi.Quote
Creates a new Quote object.
QuoteAgent - interface com.sun.tdk.sampleapi.QuoteAgent.
Quote agent interface.

R

removeQuoteAgent(QuoteAgent) - Method in class com.sun.tdk.sampleapi.StockInfoManager
Removes a QuoteAgent from the StockInfoManager lookup table.

S

setDefault(StockInfoManager) - Static method in class com.sun.tdk.sampleapi.StockInfoManager
Sets the default StockInfoManager.
StockInfoManager - class com.sun.tdk.sampleapi.StockInfoManager.
StockInfoManager is an entry point to the Sample API.
StockInfoManager() - Constructor for class com.sun.tdk.sampleapi.StockInfoManager
Default constructor.
StockSymbol - class com.sun.tdk.sampleapi.StockSymbol.
StockSymbol class represents a ticker symbol.
StockSymbol(String) - Constructor for class com.sun.tdk.sampleapi.StockSymbol
Creates a new StockSymbol object.

T

toString() - Method in class com.sun.tdk.sampleapi.Quote
Returns the String representation of this quote in the format getName()+" "+getStringPrice()+" at "+getTime()+" "+ getStringChange().

A C G M Q R S T