mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Add toString() to ByteArray
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user