From eecc945259ebd145254c242c6a697235fc83f3c4 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 1 Nov 2018 16:53:19 -0500 Subject: [PATCH] Added a toString() to the AssetAmount class --- .../src/main/java/cy/agorise/graphenej/AssetAmount.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/AssetAmount.java b/graphenej/src/main/java/cy/agorise/graphenej/AssetAmount.java index 6ac3a7a..37d087a 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/AssetAmount.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/AssetAmount.java @@ -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. */