Add toString() to ByteArray

This commit is contained in:
catbref 2020-12-01 15:03:23 +00:00
parent 75a265f89a
commit c16a664a78

View File

@ -1,5 +1,7 @@
package org.qortal.utils;
import java.math.BigInteger;
public class ByteArray implements Comparable<ByteArray> {
private int hash;
@ -63,4 +65,7 @@ public class ByteArray implements Comparable<ByteArray> {
return 0;
}
public String toString() {
return String.format("%x", new BigInteger(1, this.value));
}
}