public class SCAddress extends java.lang.Object implements XdrElement
union SCAddress switch (SCAddressType type)
{
case SC_ADDRESS_TYPE_ACCOUNT:
AccountID accountId;
case SC_ADDRESS_TYPE_CONTRACT:
ContractID contractId;
case SC_ADDRESS_TYPE_MUXED_ACCOUNT:
MuxedEd25519Account muxedAccount;
case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE:
ClaimableBalanceID claimableBalanceId;
case SC_ADDRESS_TYPE_LIQUIDITY_POOL:
PoolID liquidityPoolId;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
SCAddress.SCAddressBuilder |
| Constructor and Description |
|---|
SCAddress() |
SCAddress(SCAddressType discriminant,
AccountID accountId,
ContractID contractId,
MuxedEd25519Account muxedAccount,
ClaimableBalanceID claimableBalanceId,
PoolID liquidityPoolId) |
| Modifier and Type | Method and Description |
|---|---|
static SCAddress.SCAddressBuilder |
builder() |
static SCAddress |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SCAddress |
fromXdrBase64(java.lang.String xdr) |
static SCAddress |
fromXdrByteArray(byte[] xdr) |
AccountID |
getAccountId() |
ClaimableBalanceID |
getClaimableBalanceId() |
ContractID |
getContractId() |
SCAddressType |
getDiscriminant() |
PoolID |
getLiquidityPoolId() |
MuxedEd25519Account |
getMuxedAccount() |
int |
hashCode() |
void |
setAccountId(AccountID accountId) |
void |
setClaimableBalanceId(ClaimableBalanceID claimableBalanceId) |
void |
setContractId(ContractID contractId) |
void |
setDiscriminant(SCAddressType discriminant) |
void |
setLiquidityPoolId(PoolID liquidityPoolId) |
void |
setMuxedAccount(MuxedEd25519Account muxedAccount) |
SCAddress.SCAddressBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic SCAddress()
public SCAddress(SCAddressType discriminant, AccountID accountId, ContractID contractId, MuxedEd25519Account muxedAccount, ClaimableBalanceID claimableBalanceId, PoolID liquidityPoolId)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static SCAddress decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static SCAddress fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static SCAddress fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static SCAddress.SCAddressBuilder builder()
public SCAddress.SCAddressBuilder toBuilder()
public SCAddressType getDiscriminant()
public AccountID getAccountId()
public ContractID getContractId()
public MuxedEd25519Account getMuxedAccount()
public ClaimableBalanceID getClaimableBalanceId()
public PoolID getLiquidityPoolId()
public void setDiscriminant(SCAddressType discriminant)
public void setAccountId(AccountID accountId)
public void setContractId(ContractID contractId)
public void setMuxedAccount(MuxedEd25519Account muxedAccount)
public void setClaimableBalanceId(ClaimableBalanceID claimableBalanceId)
public void setLiquidityPoolId(PoolID liquidityPoolId)
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