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 |
---|---|
Fiat |
ExchangeRate.fiat |
Modifier and Type | Method and Description |
---|---|
Fiat |
Fiat.add(Fiat value) |
Fiat |
ExchangeRate.coinToFiat(Coin convertCoin)
Convert a coin amount to a fiat amount using this exchange rate.
|
Fiat |
Fiat.divide(long divisor) |
Fiat[] |
Fiat.divideAndRemainder(long divisor) |
Fiat |
Fiat.multiply(long factor) |
Fiat |
Fiat.negate() |
static Fiat |
Fiat.parseFiat(String currencyCode,
String str)
Parses an amount expressed in the way humans are used to.
|
Fiat |
MonetaryFormat.parseFiat(String currencyCode,
String str)
Parse a human readable fiat value to a
Fiat instance. |
Fiat |
Fiat.subtract(Fiat value) |
static Fiat |
Fiat.valueOf(String currencyCode,
long value) |
Modifier and Type | Method and Description |
---|---|
Fiat |
Fiat.add(Fiat value) |
int |
Fiat.compareTo(Fiat other) |
long |
Fiat.divide(Fiat divisor) |
Coin |
ExchangeRate.fiatToCoin(Fiat convertFiat)
Convert a fiat amount to a coin amount using this exchange rate.
|
boolean |
Fiat.isGreaterThan(Fiat other)
Returns true if the monetary value represented by this instance is greater than that of the given other Coin,
otherwise false.
|
boolean |
Fiat.isLessThan(Fiat other)
Returns true if the monetary value represented by this instance is less than that of the given other Coin,
otherwise false.
|
Fiat |
Fiat.subtract(Fiat value) |
Constructor and Description |
---|
ExchangeRate(Coin coin,
Fiat fiat)
Construct exchange rate.
|
ExchangeRate(Fiat fiat)
Construct exchange rate.
|
Copyright © 2016. All rights reserved.