public class BTC extends CryptoAmount
CURRENCY_CODE_BTC, CURRENCY_CODE_LTC, currencyCode, magnetude, value
Constructor and Description |
---|
BTC()
Empty Constructor
|
BTC(javax.json.JsonObject jsonObject)
JSON Parseable constructor
|
BTC(long value)
Default Constructor with amount in without magnitude
|
BTC(long value,
Magnetude magnetude)
Default Constructor with amount in satoshis with magnitude parameter
in order to specify sub satoshi amounts.
|
convertToJson, getCurrencyCode, getMagnetude, getValue, parseJson, setCurrencyCode, setMagnetude, setValue
getType, parseAmountObject
add, addB58, addNotRequired, addNotRequiredB58, getBoolean, getBooleanIfSet, getByteArrayFromB58, getByteArrayFromB58IfSet, getByteArrayFromB64, getByteArrayFromB64IfSet, getByteArrayFromHex, getByteArrayFromHexIfSet, getDate, getDateIfSet, getDouble, getDoubleIfSet, getInt, getIntIfSet, getJsonArray, getJsonArrayIfSet, getJsonObject, getJsonObjectIfSet, getLong, getLongIfSet, getString, getStringIfSet, toJson, toJsonAsString, toString
public BTC()
public BTC(long value)
value
- amount in satoshispublic BTC(long value, Magnetude magnetude)
value
- amount in satoshismagnetude
- If sub units to the value it is possible to specify a magnitude.
for example set to MILLI for millisatoshis for BTC.public BTC(javax.json.JsonObject jsonObject) throws javax.json.JsonException
jsonObject
- the jsonObject to parse.javax.json.JsonException
- if problems occurred parsing the json data.