Package org.stellar.sdk.xdr
Class HashIDPreimage.HashIDPreimageOperationID
java.lang.Object
org.stellar.sdk.xdr.HashIDPreimage.HashIDPreimageOperationID
- All Implemented Interfaces:
XdrElement
- Enclosing class:
HashIDPreimage
HashIDPreimageOperationID's original definition in the XDR file is:
struct
{
AccountID sourceAccount;
SequenceNumber seqNum;
uint32 opNum;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionHashIDPreimageOperationID(AccountID sourceAccount, SequenceNumber seqNum, Uint32 opNum) Creates a newHashIDPreimageOperationIDinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) getOpNum()Value of theopNumfield.Value of theseqNumfield.Value of thesourceAccountfield.inthashCode()voidValue of theopNumfield.voidsetSeqNum(SequenceNumber seqNum) Value of theseqNumfield.voidsetSourceAccount(AccountID sourceAccount) Value of thesourceAccountfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
HashIDPreimageOperationID
public HashIDPreimageOperationID() -
HashIDPreimageOperationID
Creates a newHashIDPreimageOperationIDinstance.- Parameters:
sourceAccount- thesourceAccountfield valueseqNum- theseqNumfield valueopNum- theopNumfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static HashIDPreimage.HashIDPreimageOperationID decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static HashIDPreimage.HashIDPreimageOperationID decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
public static HashIDPreimage.HashIDPreimageOperationID fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getSourceAccount
Value of thesourceAccountfield.- Returns:
- the
sourceAccountfield value
-
getSeqNum
Value of theseqNumfield.- Returns:
- the
seqNumfield value
-
getOpNum
Value of theopNumfield.- Returns:
- the
opNumfield value
-
setSourceAccount
Value of thesourceAccountfield.- Parameters:
sourceAccount- thesourceAccountfield value
-
setSeqNum
Value of theseqNumfield.- Parameters:
seqNum- theseqNumfield value
-
setOpNum
Value of theopNumfield.- Parameters:
opNum- theopNumfield value
-
equals
-
hashCode
public int hashCode() -
toString
-