Package org.stellar.sdk.xdr
Class SorobanAuthorizedInvocation
java.lang.Object
org.stellar.sdk.xdr.SorobanAuthorizedInvocation
- All Implemented Interfaces:
XdrElement
SorobanAuthorizedInvocation's original definition in the XDR file is:
struct SorobanAuthorizedInvocation
{
SorobanAuthorizedFunction function;
SorobanAuthorizedInvocation subInvocations<>;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSorobanAuthorizedInvocation(SorobanAuthorizedFunction function, SorobanAuthorizedInvocation[] subInvocations) Creates a newSorobanAuthorizedInvocationinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanAuthorizedInvocationdecode(XdrDataInputStream stream) static SorobanAuthorizedInvocationdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SorobanAuthorizedInvocationstatic SorobanAuthorizedInvocationfromXdrBase64(String xdr) static SorobanAuthorizedInvocationfromXdrByteArray(byte[] xdr) Value of thefunctionfield.Value of thesubInvocationsfield.inthashCode()voidsetFunction(SorobanAuthorizedFunction function) Value of thefunctionfield.voidsetSubInvocations(SorobanAuthorizedInvocation[] subInvocations) Value of thesubInvocationsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanAuthorizedInvocation
public SorobanAuthorizedInvocation() -
SorobanAuthorizedInvocation
public SorobanAuthorizedInvocation(SorobanAuthorizedFunction function, SorobanAuthorizedInvocation[] subInvocations) Creates a newSorobanAuthorizedInvocationinstance.- Parameters:
function- thefunctionfield valuesubInvocations- thesubInvocationsfield 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 SorobanAuthorizedInvocation 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
-
getFunction
Value of thefunctionfield.- Returns:
- the
functionfield value
-
getSubInvocations
Value of thesubInvocationsfield.- Returns:
- the
subInvocationsfield value
-
setFunction
Value of thefunctionfield.- Parameters:
function- thefunctionfield value
-
setSubInvocations
Value of thesubInvocationsfield.- Parameters:
subInvocations- thesubInvocationsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-