com.exponto.jstock
Class TickerID
java.lang.Object
com.exponto.jstock.TickerID
- public class TickerID
- extends java.lang.Object
Container that uniquly identifies a ticker.
- Author:
- kaare
Constructor Summary |
TickerID()
|
TickerID(int t,
java.lang.String tN,
java.lang.String eN)
|
TickerID(java.lang.String tN,
java.lang.String eN)
Creates a new TickerID. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TickerID
public TickerID()
TickerID
public TickerID(java.lang.String tN,
java.lang.String eN)
- Creates a new TickerID. Both Strings are converted to lower case.
Note that the input parameters are copied, so this one
should be safe.
- Parameters:
tN
- the tickereN
- the exchange
TickerID
public TickerID(int t,
java.lang.String tN,
java.lang.String eN)
getExchangeName
public java.lang.String getExchangeName()
- Returns:
- the exchange name
getTickerIndex
public int getTickerIndex()
- Returns:
- the Identity of the ticker as used by the database.
The naming might be a bit confusing...
getTickerName
public java.lang.String getTickerName()
- Returns:
- the ticker name
setExchangeName
public void setExchangeName(java.lang.String string)
- Parameters:
string
- the exchange name
setTickerIndex
public void setTickerIndex(int i)
- Parameters:
i
- the ticker identity as used by the database
setTickerName
public void setTickerName(java.lang.String string)
- Parameters:
string
- the ticker name
toString
public java.lang.String toString()
toDebugString
public java.lang.String toDebugString()
equals
public boolean equals(java.lang.Object o)
Copyright © 2004 Kaare Ranum