mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-13 11:36:15 +01:00
VarInt: implement toString()
This commit is contained in:
parent
301c8e4a76
commit
21fae58bc8
1 changed files with 5 additions and 0 deletions
|
@ -179,6 +179,11 @@ public class VarInt {
|
|||
return buf;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Long.toUnsignedString(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
// originallyEncodedSize is not considered on purpose
|
||||
|
|
Loading…
Add table
Reference in a new issue