Package org.stellar.sdk.xdr
Class ManageDataOp
java.lang.Object
org.stellar.sdk.xdr.ManageDataOp
- All Implemented Interfaces:
XdrElement
ManageDataOp's original definition in the XDR file is:
struct ManageDataOp
{
string64 dataName;
DataValue* dataValue; // set to null to clear
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionManageDataOp(String64 dataName, DataValue dataValue) Creates a newManageDataOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ManageDataOpdecode(XdrDataInputStream stream) static ManageDataOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ManageDataOpstatic ManageDataOpfromXdrBase64(String xdr) static ManageDataOpfromXdrByteArray(byte[] xdr) Value of thedataNamefield.Value of thedataValuefield.inthashCode()voidsetDataName(String64 dataName) Value of thedataNamefield.voidsetDataValue(DataValue dataValue) Value of thedataValuefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ManageDataOp
public ManageDataOp() -
ManageDataOp
Creates a newManageDataOpinstance.- Parameters:
dataName- thedataNamefield valuedataValue- thedataValuefield 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
-
getDataName
Value of thedataNamefield.- Returns:
- the
dataNamefield value
-
getDataValue
Value of thedataValuefield.- Returns:
- the
dataValuefield value
-
setDataName
Value of thedataNamefield.- Parameters:
dataName- thedataNamefield value
-
setDataValue
Value of thedataValuefield.- Parameters:
dataValue- thedataValuefield value
-
equals
-
hashCode
public int hashCode() -
toString
-