forked from Qortal/qortal
Add toString() to ByteArray
This commit is contained in:
parent
75a265f89a
commit
c16a664a78
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user