Added a toString() to the AssetAmount class

develop
Nelson R. Perez 2018-11-01 16:53:19 -05:00
parent d66c8f0ff8
commit eecc945259
1 changed files with 5 additions and 0 deletions

View File

@ -191,6 +191,11 @@ public class AssetAmount implements ByteSerializable, JsonSerializable {
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.
*/