Package org.stellar.sdk.xdr
Class UpgradeEntryMeta
java.lang.Object
org.stellar.sdk.xdr.UpgradeEntryMeta
- All Implemented Interfaces:
XdrElement
UpgradeEntryMeta's original definition in the XDR file is:
struct UpgradeEntryMeta
{
LedgerUpgrade upgrade;
LedgerEntryChanges changes;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionUpgradeEntryMeta(LedgerUpgrade upgrade, LedgerEntryChanges changes) Creates a newUpgradeEntryMetainstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static UpgradeEntryMetadecode(XdrDataInputStream stream) static UpgradeEntryMetadecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic UpgradeEntryMetastatic UpgradeEntryMetafromXdrBase64(String xdr) static UpgradeEntryMetafromXdrByteArray(byte[] xdr) Value of thechangesfield.Value of theupgradefield.inthashCode()voidsetChanges(LedgerEntryChanges changes) Value of thechangesfield.voidsetUpgrade(LedgerUpgrade upgrade) Value of theupgradefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
UpgradeEntryMeta
public UpgradeEntryMeta() -
UpgradeEntryMeta
Creates a newUpgradeEntryMetainstance.- Parameters:
upgrade- theupgradefield valuechanges- thechangesfield 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
-
getUpgrade
Value of theupgradefield.- Returns:
- the
upgradefield value
-
getChanges
Value of thechangesfield.- Returns:
- the
changesfield value
-
setUpgrade
Value of theupgradefield.- Parameters:
upgrade- theupgradefield value
-
setChanges
Value of thechangesfield.- Parameters:
changes- thechangesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-