Package org.stellar.sdk.xdr
Class RevokeSponsorshipOp
java.lang.Object
org.stellar.sdk.xdr.RevokeSponsorshipOp
- All Implemented Interfaces:
XdrElement
RevokeSponsorshipOp's original definition in the XDR file is:
union RevokeSponsorshipOp switch (RevokeSponsorshipType type)
{
case REVOKE_SPONSORSHIP_LEDGER_ENTRY:
LedgerKey ledgerKey;
case REVOKE_SPONSORSHIP_SIGNER:
struct
{
AccountID accountID;
SignerKey signerKey;
} signer;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classRevokeSponsorshipOpSigner's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionRevokeSponsorshipOp(RevokeSponsorshipType discriminant, LedgerKey ledgerKey, RevokeSponsorshipOp.RevokeSponsorshipOpSigner signer) Creates a newRevokeSponsorshipOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static RevokeSponsorshipOpdecode(XdrDataInputStream stream) static RevokeSponsorshipOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic RevokeSponsorshipOpstatic RevokeSponsorshipOpfromXdrBase64(String xdr) static RevokeSponsorshipOpfromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of theledgerKeyfield.Value of thesignerfield.inthashCode()voidsetDiscriminant(RevokeSponsorshipType discriminant) Value of thediscriminantfield.voidsetLedgerKey(LedgerKey ledgerKey) Value of theledgerKeyfield.voidValue of thesignerfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
RevokeSponsorshipOp
public RevokeSponsorshipOp() -
RevokeSponsorshipOp
public RevokeSponsorshipOp(RevokeSponsorshipType discriminant, LedgerKey ledgerKey, RevokeSponsorshipOp.RevokeSponsorshipOpSigner signer) Creates a newRevokeSponsorshipOpinstance.- Parameters:
discriminant- thediscriminantfield valueledgerKey- theledgerKeyfield valuesigner- thesignerfield 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 RevokeSponsorshipOp decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getLedgerKey
Value of theledgerKeyfield.- Returns:
- the
ledgerKeyfield value
-
getSigner
Value of thesignerfield.- Returns:
- the
signerfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setLedgerKey
Value of theledgerKeyfield.- Parameters:
ledgerKey- theledgerKeyfield value
-
setSigner
Value of thesignerfield.- Parameters:
signer- thesignerfield value
-
equals
-
hashCode
public int hashCode() -
toString
-