public class ContractIDPreimage extends java.lang.Object implements XdrElement
union ContractIDPreimage switch (ContractIDPreimageType type)
{
case CONTRACT_ID_PREIMAGE_FROM_ADDRESS:
struct
{
SCAddress address;
uint256 salt;
} fromAddress;
case CONTRACT_ID_PREIMAGE_FROM_ASSET:
Asset fromAsset;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
ContractIDPreimage.ContractIDPreimageBuilder |
static class |
ContractIDPreimage.ContractIDPreimageFromAddress
ContractIDPreimageFromAddress's original definition in the XDR file is:
|
| Constructor and Description |
|---|
ContractIDPreimage() |
ContractIDPreimage(ContractIDPreimageType discriminant,
ContractIDPreimage.ContractIDPreimageFromAddress fromAddress,
Asset fromAsset) |
| Modifier and Type | Method and Description |
|---|---|
static ContractIDPreimage.ContractIDPreimageBuilder |
builder() |
static ContractIDPreimage |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ContractIDPreimage |
fromXdrBase64(java.lang.String xdr) |
static ContractIDPreimage |
fromXdrByteArray(byte[] xdr) |
ContractIDPreimageType |
getDiscriminant() |
ContractIDPreimage.ContractIDPreimageFromAddress |
getFromAddress() |
Asset |
getFromAsset() |
int |
hashCode() |
void |
setDiscriminant(ContractIDPreimageType discriminant) |
void |
setFromAddress(ContractIDPreimage.ContractIDPreimageFromAddress fromAddress) |
void |
setFromAsset(Asset fromAsset) |
ContractIDPreimage.ContractIDPreimageBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic ContractIDPreimage()
public ContractIDPreimage(ContractIDPreimageType discriminant, ContractIDPreimage.ContractIDPreimageFromAddress fromAddress, Asset fromAsset)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static ContractIDPreimage decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static ContractIDPreimage fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static ContractIDPreimage fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static ContractIDPreimage.ContractIDPreimageBuilder builder()
public ContractIDPreimage.ContractIDPreimageBuilder toBuilder()
public ContractIDPreimageType getDiscriminant()
public ContractIDPreimage.ContractIDPreimageFromAddress getFromAddress()
public Asset getFromAsset()
public void setDiscriminant(ContractIDPreimageType discriminant)
public void setFromAddress(ContractIDPreimage.ContractIDPreimageFromAddress fromAddress)
public void setFromAsset(Asset fromAsset)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object