Package org.stellar.sdk.xdr
Class HashIDPreimage.HashIDPreimageRevokeID
java.lang.Object
org.stellar.sdk.xdr.HashIDPreimage.HashIDPreimageRevokeID
- All Implemented Interfaces:
XdrElement
- Enclosing class:
HashIDPreimage
HashIDPreimageRevokeID's original definition in the XDR file is:
struct
{
AccountID sourceAccount;
SequenceNumber seqNum;
uint32 opNum;
PoolID liquidityPoolID;
Asset asset;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionHashIDPreimageRevokeID(AccountID sourceAccount, SequenceNumber seqNum, Uint32 opNum, PoolID liquidityPoolID, Asset asset) Creates a newHashIDPreimageRevokeIDinstance. -
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) getAsset()Value of theassetfield.Value of theliquidityPoolIDfield.getOpNum()Value of theopNumfield.Value of theseqNumfield.Value of thesourceAccountfield.inthashCode()voidValue of theassetfield.voidsetLiquidityPoolID(PoolID liquidityPoolID) Value of theliquidityPoolIDfield.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
-
HashIDPreimageRevokeID
public HashIDPreimageRevokeID() -
HashIDPreimageRevokeID
public HashIDPreimageRevokeID(AccountID sourceAccount, SequenceNumber seqNum, Uint32 opNum, PoolID liquidityPoolID, Asset asset) Creates a newHashIDPreimageRevokeIDinstance.- Parameters:
sourceAccount- thesourceAccountfield valueseqNum- theseqNumfield valueopNum- theopNumfield valueliquidityPoolID- theliquidityPoolIDfield valueasset- theassetfield 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.HashIDPreimageRevokeID decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static HashIDPreimage.HashIDPreimageRevokeID decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- 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
-
getLiquidityPoolID
Value of theliquidityPoolIDfield.- Returns:
- the
liquidityPoolIDfield value
-
getAsset
Value of theassetfield.- Returns:
- the
assetfield 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
-
setLiquidityPoolID
Value of theliquidityPoolIDfield.- Parameters:
liquidityPoolID- theliquidityPoolIDfield value
-
setAsset
Value of theassetfield.- Parameters:
asset- theassetfield value
-
equals
-
hashCode
public int hashCode() -
toString
-