public class Instruments extends Object implements Iterable<Instrument>
Modifier and Type | Method and Description |
---|---|
static Instruments |
fromConfig(Config config,
String path)
Get the instruments from a configuration object.
|
Instrument |
get(long instrument)
Get an instrument.
|
Instrument |
get(String instrument)
Get an instrument.
|
int |
getMaxPriceFractionDigits()
Get the maximum number of digits in the fractional part of a price.
|
int |
getMaxSizeFractionDigits()
Get the maximum number of digits in the fractional part of a size.
|
String |
getPricePlaceholder()
Get a placeholder for a price.
|
int |
getPriceWidth()
Get the width of a formatted price.
|
String |
getSizePlaceholder()
Get a placeholder for a size.
|
int |
getSizeWidth()
Get the width of a formatted size.
|
Iterator<Instrument> |
iterator()
Return an iterator over the instruments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Instrument get(String instrument)
instrument
- an instrumentpublic Instrument get(long instrument)
instrument
- an instrumentpublic Iterator<Instrument> iterator()
iterator
in interface Iterable<Instrument>
public int getMaxPriceFractionDigits()
public int getMaxSizeFractionDigits()
public int getPriceWidth()
public int getSizeWidth()
public String getPricePlaceholder()
public String getSizePlaceholder()
public static Instruments fromConfig(Config config, String path)
config
- a configuration objectpath
- the path expressionConfigException
- if a configuration error occursCopyright © 2017. All rights reserved.