Package org.stellar.sdk.xdr
Class DataEntry
java.lang.Object
org.stellar.sdk.xdr.DataEntry
- All Implemented Interfaces:
XdrElement
DataEntry's original definition in the XDR file is:
struct DataEntry
{
AccountID accountID; // account this data belongs to
string64 dataName;
DataValue dataValue;
// reserved for future use
union switch (int v)
{
case 0:
void;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classDataEntryExt's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataEntry.DataEntryBuilderbuilder()static DataEntrydecode(XdrDataInputStream stream) static DataEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic DataEntrystatic DataEntryfromXdrBase64(String xdr) static DataEntryfromXdrByteArray(byte[] xdr) Value of theaccountIDfield.Value of thedataNamefield.Value of thedataValuefield.getExt()Value of theextfield.inthashCode()voidsetAccountID(AccountID accountID) Value of theaccountIDfield.voidsetDataName(String64 dataName) Value of thedataNamefield.voidsetDataValue(DataValue dataValue) Value of thedataValuefield.voidValue of theextfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
DataEntry
public DataEntry() -
DataEntry
public DataEntry(AccountID accountID, String64 dataName, DataValue dataValue, DataEntry.DataEntryExt ext) Creates a newDataEntryinstance.- Parameters:
accountID- theaccountIDfield valuedataName- thedataNamefield valuedataValue- thedataValuefield valueext- theextfield 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
-
getAccountID
Value of theaccountIDfield.- Returns:
- the
accountIDfield value
-
getDataName
Value of thedataNamefield.- Returns:
- the
dataNamefield value
-
getDataValue
Value of thedataValuefield.- Returns:
- the
dataValuefield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setAccountID
Value of theaccountIDfield.- Parameters:
accountID- theaccountIDfield value
-
setDataName
Value of thedataNamefield.- Parameters:
dataName- thedataNamefield value
-
setDataValue
Value of thedataValuefield.- Parameters:
dataValue- thedataValuefield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-