Added a toString() to the AssetAmount class
This commit is contained in:
parent
d66c8f0ff8
commit
eecc945259
1 changed files with 5 additions and 0 deletions
|
@ -191,6 +191,11 @@ public class AssetAmount implements ByteSerializable, JsonSerializable {
|
||||||
return jsonAmount;
|
return jsonAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.format("(asset=%s, amount=%s)", asset.getObjectId(), amount.toString(10));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom serializer used to translate this object into the JSON-formatted entry we need for a transaction.
|
* Custom serializer used to translate this object into the JSON-formatted entry we need for a transaction.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue