Package | Description |
---|---|
org.bitcoinj.utils |
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files,
a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
|
Modifier and Type | Field and Description |
---|---|
static MonetaryFormat |
MonetaryFormat.BTC
Standard format for the BTC denomination.
|
static MonetaryFormat |
MonetaryFormat.FIAT
Standard format for fiat amounts.
|
static MonetaryFormat |
MonetaryFormat.MBTC
Standard format for the mBTC denomination.
|
static MonetaryFormat |
MonetaryFormat.UBTC
Standard format for the µBTC denomination.
|
Modifier and Type | Method and Description |
---|---|
MonetaryFormat |
MonetaryFormat.code(int codeShift,
String code)
Configure currency code for given decimal separator shift.
|
MonetaryFormat |
MonetaryFormat.codeSeparator(char codeSeparator)
Separator between currency code and formatted value.
|
MonetaryFormat |
MonetaryFormat.decimalMark(char decimalMark)
Set character to use as the decimal mark.
|
MonetaryFormat |
MonetaryFormat.digits(char zeroDigit)
Set character range to use for representing digits.
|
MonetaryFormat |
MonetaryFormat.minDecimals(int minDecimals)
Set minimum number of decimals to use for formatting.
|
MonetaryFormat |
MonetaryFormat.negativeSign(char negativeSign)
Set character to prefix negative values.
|
MonetaryFormat |
MonetaryFormat.noCode()
Don't display currency code when formatting.
|
MonetaryFormat |
MonetaryFormat.optionalDecimals(int... groups)
Set additional groups of decimals to use after the minimum decimals, if they are useful for expressing precision.
|
MonetaryFormat |
MonetaryFormat.positiveSign(char positiveSign)
Set character to prefix positive values.
|
MonetaryFormat |
MonetaryFormat.postfixCode()
Postfix formatted output with currency code.
|
MonetaryFormat |
MonetaryFormat.prefixCode()
Prefix formatted output by currency code.
|
MonetaryFormat |
MonetaryFormat.repeatOptionalDecimals(int decimals,
int repetitions)
Set repeated additional groups of decimals to use after the minimum decimals, if they are useful for expressing
precision.
|
MonetaryFormat |
MonetaryFormat.roundingMode(RoundingMode roundingMode)
Set rounding mode to use when it becomes necessary.
|
MonetaryFormat |
MonetaryFormat.shift(int shift)
Set number of digits to shift the decimal separator to the right, coming from the standard BTC notation that was
common pre-2014.
|
MonetaryFormat |
MonetaryFormat.withLocale(Locale locale)
Configure this instance with values from a
Locale . |
Copyright © 2014. All rights reserved.