Class MemoHash

java.lang.Object
org.stellar.sdk.Memo
org.stellar.sdk.MemoHash

public class MemoHash extends Memo
Represents MEMO_HASH.
  • Constructor Details

    • MemoHash

      public MemoHash(byte[] bytes)
    • MemoHash

      public MemoHash(String hexString)
  • Method Details

    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • getHexValue

      public String getHexValue()
      Returns hex representation of bytes contained in this memo.

      Example: MemoHash memo = new MemoHash("e98869bba8bce08c10b78406202127f3888c25454cd37b02600862452751f526"); memo.getHexValue(); // e98869bba8bce08c10b78406202127f3888c25454cd37b02600862452751f526

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBytes

      public byte @NonNull [] getBytes()
      32 bytes long array contained in this memo.