public class MemoReturnHash extends Memo
Constructor and Description |
---|
MemoReturnHash(byte[] bytes) |
MemoReturnHash(java.lang.String hexString) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Returns 32 bytes long array contained in this memo.
|
java.lang.String |
getHexValue()
Returns hex representation of bytes contained in this memo.
|
java.lang.String |
getTrimmedHexValue()
Returns hex representation of bytes contained in this memo until null byte (0x00) is found.
|
hash, hash, id, none, returnHash, returnHash, text
public MemoReturnHash(byte[] bytes)
public MemoReturnHash(java.lang.String hexString)
public byte[] getBytes()
public java.lang.String getHexValue()
Returns hex representation of bytes contained in this memo.
Example:
MemoHash memo = new MemoHash("4142434445");
memo.getHexValue(); // 4142434445000000000000000000000000000000000000000000000000000000
memo.getTrimmedHexValue(); // 4142434445
public java.lang.String getTrimmedHexValue()
Returns hex representation of bytes contained in this memo until null byte (0x00) is found.
Example:
MemoHash memo = new MemoHash("4142434445");
memo.getHexValue(); // 4142434445000000000000000000000000000000000000000000000000000000
memo.getTrimmedHexValue(); // 4142434445