public static class Meta.Tickers extends Object
Client instance with the second and subsequent instances when you
are pretty sure that they are connected to the same ASTS instance. That
way the second instance can skip a long-running loading and parsing of
"SECURITIES" table.
Instance methods are synchronized with ReadWriteLock and can
be safely used by multiple clients and parsers between threads.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears any stored scale information.
|
int |
get(Meta.Ticker ticker,
int fallback) |
int |
get(String paper,
int fallback)
Gets scale of the security identified by only paper.
|
int |
get(String board,
String paper,
int fallback)
Gets scale of the security identified by both board and
paper.
|
boolean |
isEmpty() |
void |
set(Meta.Ticker ticker,
int decimals) |
void |
set(String board,
String paper,
int decimals)
Sets scale of the security identified by both board and
paper.
|
public boolean isEmpty()
public void clear()
public int get(String board, String paper, int fallback)
board - - security board (SECBOARD as known in ASTS).paper - - security paper (SECCODE as known in ASTS).fallback - - value to return when no match found.public int get(Meta.Ticker ticker, int fallback)
public int get(String paper, int fallback)
paper - - security paper (SECCODE as known in ASTS).fallback - - value to return when no match found.public void set(String board, String paper, int decimals)
board - - security board (SECBOARD as known in ASTS).paper - - security paper (SECCODE as known in ASTS).decimals - - security scale.public void set(Meta.Ticker ticker, int decimals)