public class ContractExecutable extends java.lang.Object implements XdrElement
union ContractExecutable switch (ContractExecutableType type) { case CONTRACT_EXECUTABLE_WASM: Hash wasm_hash; case CONTRACT_EXECUTABLE_STELLAR_ASSET: void; };
Modifier and Type | Class and Description |
---|---|
static class |
ContractExecutable.ContractExecutableBuilder |
Constructor and Description |
---|
ContractExecutable() |
ContractExecutable(ContractExecutableType discriminant,
Hash wasm_hash) |
Modifier and Type | Method and Description |
---|---|
static ContractExecutable.ContractExecutableBuilder |
builder() |
static ContractExecutable |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ContractExecutable |
fromXdrBase64(java.lang.String xdr) |
static ContractExecutable |
fromXdrByteArray(byte[] xdr) |
ContractExecutableType |
getDiscriminant() |
Hash |
getWasm_hash() |
int |
hashCode() |
void |
setDiscriminant(ContractExecutableType discriminant) |
void |
setWasm_hash(Hash wasm_hash) |
ContractExecutable.ContractExecutableBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public ContractExecutable()
public ContractExecutable(ContractExecutableType discriminant, Hash wasm_hash)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ContractExecutable decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ContractExecutable fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ContractExecutable fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ContractExecutable.ContractExecutableBuilder builder()
public ContractExecutable.ContractExecutableBuilder toBuilder()
public ContractExecutableType getDiscriminant()
public Hash getWasm_hash()
public void setDiscriminant(ContractExecutableType discriminant)
public void setWasm_hash(Hash wasm_hash)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object