Package org.stellar.sdk.xdr
Class ContractDataEntry
java.lang.Object
org.stellar.sdk.xdr.ContractDataEntry
- All Implemented Interfaces:
XdrElement
ContractDataEntry's original definition in the XDR file is:
struct ContractDataEntry {
ExtensionPoint ext;
SCAddress contract;
SCVal key;
ContractDataDurability durability;
SCVal val;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionContractDataEntry(ExtensionPoint ext, SCAddress contract, SCVal key, ContractDataDurability durability, SCVal val) Creates a newContractDataEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ContractDataEntrydecode(XdrDataInputStream stream) static ContractDataEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ContractDataEntrystatic ContractDataEntryfromXdrBase64(String xdr) static ContractDataEntryfromXdrByteArray(byte[] xdr) Value of thecontractfield.Value of thedurabilityfield.getExt()Value of theextfield.getKey()Value of thekeyfield.getVal()Value of thevalfield.inthashCode()voidsetContract(SCAddress contract) Value of thecontractfield.voidsetDurability(ContractDataDurability durability) Value of thedurabilityfield.voidsetExt(ExtensionPoint ext) Value of theextfield.voidValue of thekeyfield.voidValue of thevalfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ContractDataEntry
public ContractDataEntry() -
ContractDataEntry
public ContractDataEntry(ExtensionPoint ext, SCAddress contract, SCVal key, ContractDataDurability durability, SCVal val) Creates a newContractDataEntryinstance.- Parameters:
ext- theextfield valuecontract- thecontractfield valuekey- thekeyfield valuedurability- thedurabilityfield valueval- thevalfield 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
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
getContract
Value of thecontractfield.- Returns:
- the
contractfield value
-
getKey
Value of thekeyfield.- Returns:
- the
keyfield value
-
getDurability
Value of thedurabilityfield.- Returns:
- the
durabilityfield value
-
getVal
Value of thevalfield.- Returns:
- the
valfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setContract
Value of thecontractfield.- Parameters:
contract- thecontractfield value
-
setKey
Value of thekeyfield.- Parameters:
key- thekeyfield value
-
setDurability
Value of thedurabilityfield.- Parameters:
durability- thedurabilityfield value
-
setVal
Value of thevalfield.- Parameters:
val- thevalfield value
-
equals
-
hashCode
public int hashCode() -
toString
-