com.exponto.jstock.io
Class TickerID

java.lang.Object
  extended bycom.exponto.jstock.io.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.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getExchangeName()
           
 int getTickerIndex()
           
 java.lang.String getTickerName()
           
 int hashCode()
           
 void setExchangeName(java.lang.String string)
           
 void setTickerIndex(int i)
           
 void setTickerName(java.lang.String string)
           
 java.lang.String toDebugString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 ticker
eN - the exchange

TickerID

public TickerID(int t,
                java.lang.String tN,
                java.lang.String eN)
Method Detail

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()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)


Copyright © 2004 Kaare Ranum