/** * Parse a human readable fiat value to a {@link org.bitcoinj.utils.Fiat} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Fiat parseFiat(String currencyCode, String str) throws NumberFormatException { return Fiat.valueOf(currencyCode, parseValue(str, Fiat.SMALLEST_UNIT_EXPONENT)); }
/** * Parse a human readable fiat value to a {@link org.bitcoinj.utils.Fiat} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Fiat parseFiat(String currencyCode, String str) throws NumberFormatException { return Fiat.valueOf(currencyCode, parseValue(str, Fiat.SMALLEST_UNIT_EXPONENT)); }
/** * Parse a human readable coin value to a {@link org.bitcoinj.core.Coin} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Coin parse(String str) throws NumberFormatException { return Coin.valueOf(parseValue(str, Coin.SMALLEST_UNIT_EXPONENT)); }
/** * Parse a human readable fiat value to a {@link org.bitcoinj.utils.Fiat} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Fiat parseFiat(String currencyCode, String str) throws NumberFormatException { return Fiat.valueOf(currencyCode, parseValue(str, Fiat.SMALLEST_UNIT_EXPONENT)); }
/** * Parse a human readable coin value to a {@link org.bitcoinj.core.Coin} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Coin parse(String str) throws NumberFormatException { return Coin.valueOf(parseValue(str, Coin.SMALLEST_UNIT_EXPONENT)); }
/** * Parse a human readable coin value to a {@link org.bitcoinj.core.Coin} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Coin parse(String str) throws NumberFormatException { return Coin.valueOf(parseValue(str, Coin.SMALLEST_UNIT_EXPONENT)); }
/** * Parse a human readable fiat value to a {@link org.bitcoinj.utils.Fiat} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Fiat parseFiat(String currencyCode, String str) throws NumberFormatException { return Fiat.valueOf(currencyCode, parseValue(str, Fiat.SMALLEST_UNIT_EXPONENT)); }
/** * Parse a human readable coin value to a {@link org.bitcoinj.core.Coin} instance. * * @throws NumberFormatException * if the string cannot be parsed for some reason */ public Coin parse(String str) throws NumberFormatException { return Coin.valueOf(parseValue(str, Coin.SMALLEST_UNIT_EXPONENT)); }