Added a toString() to the AssetAmount class

This commit is contained in:
Nelson R. Perez 2018-11-01 16:53:19 -05:00
parent d66c8f0ff8
commit eecc945259

View file

@ -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.
*/ */