Package org.stellar.sdk.xdr
Class SorobanAddressCredentialsWithDelegates
java.lang.Object
org.stellar.sdk.xdr.SorobanAddressCredentialsWithDelegates
- All Implemented Interfaces:
XdrElement
SorobanAddressCredentialsWithDelegates's original definition in the XDR file is:
struct SorobanAddressCredentialsWithDelegates
{
SorobanAddressCredentials addressCredentials;
SorobanDelegateSignature delegates<>;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSorobanAddressCredentialsWithDelegates(SorobanAddressCredentials addressCredentials, SorobanDelegateSignature[] delegates) Creates a newSorobanAddressCredentialsWithDelegatesinstance. -
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) Value of theaddressCredentialsfield.Value of thedelegatesfield.inthashCode()voidsetAddressCredentials(SorobanAddressCredentials addressCredentials) Value of theaddressCredentialsfield.voidsetDelegates(SorobanDelegateSignature[] delegates) Value of thedelegatesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanAddressCredentialsWithDelegates
public SorobanAddressCredentialsWithDelegates() -
SorobanAddressCredentialsWithDelegates
public SorobanAddressCredentialsWithDelegates(SorobanAddressCredentials addressCredentials, SorobanDelegateSignature[] delegates) Creates a newSorobanAddressCredentialsWithDelegatesinstance.- Parameters:
addressCredentials- theaddressCredentialsfield valuedelegates- thedelegatesfield 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 SorobanAddressCredentialsWithDelegates decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static SorobanAddressCredentialsWithDelegates decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
public static SorobanAddressCredentialsWithDelegates 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
public static SorobanAddressCredentialsWithDelegates.SorobanAddressCredentialsWithDelegatesBuilder builder() -
toBuilder
-
getAddressCredentials
Value of theaddressCredentialsfield.- Returns:
- the
addressCredentialsfield value
-
getDelegates
Value of thedelegatesfield.- Returns:
- the
delegatesfield value
-
setAddressCredentials
Value of theaddressCredentialsfield.- Parameters:
addressCredentials- theaddressCredentialsfield value
-
setDelegates
Value of thedelegatesfield.- Parameters:
delegates- thedelegatesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-