public class ContractCodeEntry extends java.lang.Object implements XdrElement
struct ContractCodeEntry { union switch (int v) { case 0: void; case 1: struct { ExtensionPoint ext; ContractCodeCostInputs costInputs; } v1; } ext; Hash hash; opaque code<>; };
Modifier and Type | Class and Description |
---|---|
static class |
ContractCodeEntry.ContractCodeEntryBuilder |
static class |
ContractCodeEntry.ContractCodeEntryExt
ContractCodeEntryExt's original definition in the XDR file is:
|
Constructor and Description |
---|
ContractCodeEntry() |
ContractCodeEntry(ContractCodeEntry.ContractCodeEntryExt ext,
Hash hash,
byte[] code) |
Modifier and Type | Method and Description |
---|---|
static ContractCodeEntry.ContractCodeEntryBuilder |
builder() |
static ContractCodeEntry |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ContractCodeEntry |
fromXdrBase64(java.lang.String xdr) |
static ContractCodeEntry |
fromXdrByteArray(byte[] xdr) |
byte[] |
getCode() |
ContractCodeEntry.ContractCodeEntryExt |
getExt() |
Hash |
getHash() |
int |
hashCode() |
void |
setCode(byte[] code) |
void |
setExt(ContractCodeEntry.ContractCodeEntryExt ext) |
void |
setHash(Hash hash) |
ContractCodeEntry.ContractCodeEntryBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public ContractCodeEntry()
public ContractCodeEntry(ContractCodeEntry.ContractCodeEntryExt ext, Hash hash, byte[] code)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ContractCodeEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ContractCodeEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ContractCodeEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ContractCodeEntry.ContractCodeEntryBuilder builder()
public ContractCodeEntry.ContractCodeEntryBuilder toBuilder()
public ContractCodeEntry.ContractCodeEntryExt getExt()
public Hash getHash()
public byte[] getCode()
public void setExt(ContractCodeEntry.ContractCodeEntryExt ext)
public void setHash(Hash hash)
public void setCode(byte[] code)
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