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, toXdrByteArray
public ContractIDPreimage()
public ContractIDPreimage(ContractIDPreimageType discriminant, ContractIDPreimage.ContractIDPreimageFromAddress fromAddress, Asset fromAsset)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ContractIDPreimage decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ContractIDPreimage fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ContractIDPreimage fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object