|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.fixagora.basis.shared.control.DollarFraction
public class DollarFraction
The Class DollarFraction.
Constructor Summary | |
---|---|
DollarFraction(double tickSize)
Instantiates a new dollar fraction. |
Method Summary | |
---|---|
static char |
getDenomiatorDigit(char denomiator)
Gets the denomiator digit. |
static char |
getDenomiatorIntChar(char denominator)
Gets the denomiator int char. |
static java.lang.String |
getDenomiatorString(int denomiator)
Gets the denomiator string. |
java.lang.String |
getDollarPrice(double price,
int leadingZeros)
Gets the dollar price. |
java.lang.String |
getDollarPrice(double price,
int leadingZeros,
boolean shorten)
Gets the dollar price. |
java.lang.String |
getDollarPriceFraction(double price)
Gets the dollar price fraction. |
java.lang.String |
getDollarPriceFraction(double price,
boolean shorten)
Gets the dollar price fraction. |
static java.lang.Double |
getDoubleValue(java.lang.String text)
Gets the double value. |
static char |
getNumeratorDigit(char numerator)
Gets the numerator digit. |
static char |
getNumeratorIntChar(char numerator)
Gets the numerator int char. |
static java.lang.String |
getNumeratorString(int numerator)
Gets the numerator string. |
static int |
getSecondDenominator(double tickSize)
Gets the second denominator. |
boolean |
isValidPrice(double price)
Checks if is valid price. |
static boolean |
isValidTickSize(double tickSize)
Checks if is valid tick size. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DollarFraction(double tickSize) throws java.lang.Exception
tickSize
- the tick size
java.lang.Exception
- the exceptionMethod Detail |
---|
public java.lang.String getDollarPrice(double price, int leadingZeros) throws java.lang.Exception
price
- the priceleadingZeros
- the leading zeros
java.lang.Exception
- the exceptionpublic java.lang.String getDollarPriceFraction(double price) throws java.lang.Exception
price
- the price
java.lang.Exception
- the exceptionpublic java.lang.String getDollarPriceFraction(double price, boolean shorten) throws java.lang.Exception
price
- the priceshorten
- the shorten
java.lang.Exception
- the exceptionpublic java.lang.String getDollarPrice(double price, int leadingZeros, boolean shorten) throws java.lang.Exception
price
- the priceleadingZeros
- the leading zerosshorten
- the shorten
java.lang.Exception
- the exceptionpublic boolean isValidPrice(double price)
price
- the price
public static boolean isValidTickSize(double tickSize)
tickSize
- the tick size
public static int getSecondDenominator(double tickSize)
tickSize
- the tick size
public static char getDenomiatorDigit(char denomiator)
denomiator
- the denomiator
public static char getNumeratorDigit(char numerator)
numerator
- the numerator
public static char getDenomiatorIntChar(char denominator)
denominator
- the denominator
public static char getNumeratorIntChar(char numerator)
numerator
- the numerator
public static java.lang.String getDenomiatorString(int denomiator)
denomiator
- the denomiator
public static java.lang.String getNumeratorString(int numerator)
numerator
- the numerator
public static java.lang.Double getDoubleValue(java.lang.String text)
text
- the text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |