Package org.stellar.sdk.xdr
Class CreateAccountOp
java.lang.Object
org.stellar.sdk.xdr.CreateAccountOp
- All Implemented Interfaces:
XdrElement
CreateAccountOp's original definition in the XDR file is:
struct CreateAccountOp
{
AccountID destination; // account to create
int64 startingBalance; // amount they end up with
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionCreateAccountOp(AccountID destination, Int64 startingBalance) Creates a newCreateAccountOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static CreateAccountOpdecode(XdrDataInputStream stream) static CreateAccountOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic CreateAccountOpstatic CreateAccountOpfromXdrBase64(String xdr) static CreateAccountOpfromXdrByteArray(byte[] xdr) Value of thedestinationfield.Value of thestartingBalancefield.inthashCode()voidsetDestination(AccountID destination) Value of thedestinationfield.voidsetStartingBalance(Int64 startingBalance) Value of thestartingBalancefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
CreateAccountOp
public CreateAccountOp() -
CreateAccountOp
Creates a newCreateAccountOpinstance.- Parameters:
destination- thedestinationfield valuestartingBalance- thestartingBalancefield 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
- 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
-
getDestination
Value of thedestinationfield.- Returns:
- the
destinationfield value
-
getStartingBalance
Value of thestartingBalancefield.- Returns:
- the
startingBalancefield value
-
setDestination
Value of thedestinationfield.- Parameters:
destination- thedestinationfield value
-
setStartingBalance
Value of thestartingBalancefield.- Parameters:
startingBalance- thestartingBalancefield value
-
equals
-
hashCode
public int hashCode() -
toString
-