Package org.stellar.sdk.xdr
Class AccountEntryExtensionV2
java.lang.Object
org.stellar.sdk.xdr.AccountEntryExtensionV2
- All Implemented Interfaces:
XdrElement
AccountEntryExtensionV2's original definition in the XDR file is:
struct AccountEntryExtensionV2
{
uint32 numSponsored;
uint32 numSponsoring;
SponsorshipDescriptor signerSponsoringIDs<MAX_SIGNERS>;
union switch (int v)
{
case 0:
void;
case 3:
AccountEntryExtensionV3 v3;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAccountEntryExtensionV2Ext's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionAccountEntryExtensionV2(Uint32 numSponsored, Uint32 numSponsoring, SponsorshipDescriptor[] signerSponsoringIDs, AccountEntryExtensionV2.AccountEntryExtensionV2Ext ext) Creates a newAccountEntryExtensionV2instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static AccountEntryExtensionV2decode(XdrDataInputStream stream) static AccountEntryExtensionV2decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic AccountEntryExtensionV2static AccountEntryExtensionV2fromXdrBase64(String xdr) static AccountEntryExtensionV2fromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of thenumSponsoredfield.Value of thenumSponsoringfield.Value of thesignerSponsoringIDsfield.inthashCode()voidValue of theextfield.voidsetNumSponsored(Uint32 numSponsored) Value of thenumSponsoredfield.voidsetNumSponsoring(Uint32 numSponsoring) Value of thenumSponsoringfield.voidsetSignerSponsoringIDs(SponsorshipDescriptor[] signerSponsoringIDs) Value of thesignerSponsoringIDsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AccountEntryExtensionV2
public AccountEntryExtensionV2() -
AccountEntryExtensionV2
public AccountEntryExtensionV2(Uint32 numSponsored, Uint32 numSponsoring, SponsorshipDescriptor[] signerSponsoringIDs, AccountEntryExtensionV2.AccountEntryExtensionV2Ext ext) Creates a newAccountEntryExtensionV2instance.- Parameters:
numSponsored- thenumSponsoredfield valuenumSponsoring- thenumSponsoringfield valuesignerSponsoringIDs- thesignerSponsoringIDsfield valueext- theextfield 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 AccountEntryExtensionV2 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
-
getNumSponsored
Value of thenumSponsoredfield.- Returns:
- the
numSponsoredfield value
-
getNumSponsoring
Value of thenumSponsoringfield.- Returns:
- the
numSponsoringfield value
-
getSignerSponsoringIDs
Value of thesignerSponsoringIDsfield.- Returns:
- the
signerSponsoringIDsfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setNumSponsored
Value of thenumSponsoredfield.- Parameters:
numSponsored- thenumSponsoredfield value
-
setNumSponsoring
Value of thenumSponsoringfield.- Parameters:
numSponsoring- thenumSponsoringfield value
-
setSignerSponsoringIDs
Value of thesignerSponsoringIDsfield.- Parameters:
signerSponsoringIDs- thesignerSponsoringIDsfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-