A C G H L M O P Q R S T W

A

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

C

CHANGE - Static variable in class com.sun.tdk.sampleapi.Quote
Corresponds to the change in the stock in 1/10000 of a dollar.
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
Retrieves 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.
getString(int) - Method in class com.sun.tdk.sampleapi.Quote
Returns stock change/high/low/openprevious/price.
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/updates a visual representation of the stock.

H

HIGH - Static variable in class com.sun.tdk.sampleapi.Quote
Corresponds to the 52-week high for the stock.

L

LOW - Static variable in class com.sun.tdk.sampleapi.Quote
Corresponds to the 52-week low for 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.

O

OPEN - Static variable in class com.sun.tdk.sampleapi.Quote
Corresponds to the opening price of the stock.

P

PREVIOUS - Static variable in class com.sun.tdk.sampleapi.Quote
Corresponds to the previous high for the stock.
PRICE - Static variable in class com.sun.tdk.sampleapi.Quote
Corresponds to the price of the last trade of the stock.

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

timeout - Static variable in class com.sun.tdk.sampleapi.StockSymbol
Timeout for Quote retrieval operation in milliseconds.
toString() - Method in class com.sun.tdk.sampleapi.Quote
Returns the String representation of this quote in the format
toString() - Method in class com.sun.tdk.sampleapi.GetQuoteException
This method prints super.toString() followed by String reprsentation of nested exception.

W

waitQoute() - Method in class com.sun.tdk.sampleapi.StockSymbol
This method asynchroniously invokes getQuote() and waits timeout milleseconds.

A C G H L M O P Q R S T W