Enum Class MemoType

java.lang.Object
java.lang.Enum<MemoType>
org.stellar.sdk.xdr.MemoType
All Implemented Interfaces:
Serializable, Comparable<MemoType>, Constable

public enum MemoType extends Enum<MemoType>
MemoType's original definition in the XDR file is:
 enum MemoType
 {
     MEMO_NONE = 0,
     MEMO_TEXT = 1,
     MEMO_ID = 2,
     MEMO_HASH = 3,
     MEMO_RETURN = 4
 };
 
  • Enum Constant Details

    • MEMO_NONE

      public static final MemoType MEMO_NONE
    • MEMO_TEXT

      public static final MemoType MEMO_TEXT
    • MEMO_ID

      public static final MemoType MEMO_ID
    • MEMO_HASH

      public static final MemoType MEMO_HASH
    • MEMO_RETURN

      public static final MemoType MEMO_RETURN
  • Method Details

    • values

      public static MemoType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MemoType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • decode

      public static MemoType decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Throws:
      IOException
    • fromXdrBase64

      public static MemoType fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static MemoType fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • toXdrBase64

      default String toXdrBase64() throws IOException
      Throws:
      IOException
    • toXdrByteArray

      default byte[] toXdrByteArray() throws IOException
      Throws:
      IOException