Package org.stellar.sdk.xdr
Class OperationMetaV2
java.lang.Object
org.stellar.sdk.xdr.OperationMetaV2
- All Implemented Interfaces:
XdrElement
OperationMetaV2's original definition in the XDR file is:
struct OperationMetaV2
{
ExtensionPoint ext;
LedgerEntryChanges changes;
ContractEvent events<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionOperationMetaV2(ExtensionPoint ext, LedgerEntryChanges changes, ContractEvent[] events) Creates a newOperationMetaV2instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static OperationMetaV2decode(XdrDataInputStream stream) static OperationMetaV2decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic OperationMetaV2static OperationMetaV2fromXdrBase64(String xdr) static OperationMetaV2fromXdrByteArray(byte[] xdr) Value of thechangesfield.Value of theeventsfield.getExt()Value of theextfield.inthashCode()voidsetChanges(LedgerEntryChanges changes) Value of thechangesfield.voidsetEvents(ContractEvent[] events) Value of theeventsfield.voidsetExt(ExtensionPoint ext) Value of theextfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
OperationMetaV2
public OperationMetaV2() -
OperationMetaV2
Creates a newOperationMetaV2instance.- Parameters:
ext- theextfield valuechanges- thechangesfield valueevents- theeventsfield 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
-
getChanges
Value of thechangesfield.- Returns:
- the
changesfield value
-
getEvents
Value of theeventsfield.- Returns:
- the
eventsfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setChanges
Value of thechangesfield.- Parameters:
changes- thechangesfield value
-
setEvents
Value of theeventsfield.- Parameters:
events- theeventsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-