Package org.stellar.sdk.xdr
Class SorobanDelegateSignature
java.lang.Object
org.stellar.sdk.xdr.SorobanDelegateSignature
- All Implemented Interfaces:
XdrElement
SorobanDelegateSignature's original definition in the XDR file is:
struct SorobanDelegateSignature
{
SCAddress address;
SCVal signature;
SorobanDelegateSignature nestedDelegates<>;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSorobanDelegateSignature(SCAddress address, SCVal signature, SorobanDelegateSignature[] nestedDelegates) Creates a newSorobanDelegateSignatureinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanDelegateSignaturedecode(XdrDataInputStream stream) static SorobanDelegateSignaturedecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SorobanDelegateSignaturestatic SorobanDelegateSignaturefromXdrBase64(String xdr) static SorobanDelegateSignaturefromXdrByteArray(byte[] xdr) Value of theaddressfield.Value of thenestedDelegatesfield.Value of thesignaturefield.inthashCode()voidsetAddress(SCAddress address) Value of theaddressfield.voidsetNestedDelegates(SorobanDelegateSignature[] nestedDelegates) Value of thenestedDelegatesfield.voidsetSignature(SCVal signature) Value of thesignaturefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanDelegateSignature
public SorobanDelegateSignature() -
SorobanDelegateSignature
public SorobanDelegateSignature(SCAddress address, SCVal signature, SorobanDelegateSignature[] nestedDelegates) Creates a newSorobanDelegateSignatureinstance.- Parameters:
address- theaddressfield valuesignature- thesignaturefield valuenestedDelegates- thenestedDelegatesfield 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 SorobanDelegateSignature 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
-
getAddress
Value of theaddressfield.- Returns:
- the
addressfield value
-
getSignature
Value of thesignaturefield.- Returns:
- the
signaturefield value
-
getNestedDelegates
Value of thenestedDelegatesfield.- Returns:
- the
nestedDelegatesfield value
-
setAddress
Value of theaddressfield.- Parameters:
address- theaddressfield value
-
setSignature
Value of thesignaturefield.- Parameters:
signature- thesignaturefield value
-
setNestedDelegates
Value of thenestedDelegatesfield.- Parameters:
nestedDelegates- thenestedDelegatesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-