Package org.stellar.sdk.xdr
Class SorobanResourcesExtV0
java.lang.Object
org.stellar.sdk.xdr.SorobanResourcesExtV0
- All Implemented Interfaces:
XdrElement
SorobanResourcesExtV0's original definition in the XDR file is:
struct SorobanResourcesExtV0
{
// Vector of indices representing what Soroban
// entries in the footprint are archived, based on the
// order of keys provided in the readWrite footprint.
uint32 archivedSorobanEntries<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSorobanResourcesExtV0(Uint32[] archivedSorobanEntries) Creates a newSorobanResourcesExtV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanResourcesExtV0decode(XdrDataInputStream stream) static SorobanResourcesExtV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SorobanResourcesExtV0static SorobanResourcesExtV0fromXdrBase64(String xdr) static SorobanResourcesExtV0fromXdrByteArray(byte[] xdr) Uint32[]Value of thearchivedSorobanEntriesfield.inthashCode()voidsetArchivedSorobanEntries(Uint32[] archivedSorobanEntries) Value of thearchivedSorobanEntriesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanResourcesExtV0
public SorobanResourcesExtV0() -
SorobanResourcesExtV0
Creates a newSorobanResourcesExtV0instance.- Parameters:
archivedSorobanEntries- thearchivedSorobanEntriesfield 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
public static SorobanResourcesExtV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getArchivedSorobanEntries
Value of thearchivedSorobanEntriesfield.- Returns:
- the
archivedSorobanEntriesfield value
-
setArchivedSorobanEntries
Value of thearchivedSorobanEntriesfield.- Parameters:
archivedSorobanEntries- thearchivedSorobanEntriesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-