Package org.stellar.sdk.xdr
Class SCAddress
java.lang.Object
org.stellar.sdk.xdr.SCAddress
SCAddress's original definition in the XDR file is:
union SCAddress switch (SCAddressType type) { case SC_ADDRESS_TYPE_ACCOUNT: AccountID accountId; case SC_ADDRESS_TYPE_CONTRACT: Hash contractId; };
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SCAddress.SCAddressBuilder
builder()
static SCAddress
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SCAddress
fromXdrBase64
(String xdr) static SCAddress
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAccountId
(AccountID accountId) void
setContractId
(Hash contractId) void
setDiscriminant
(SCAddressType discriminant) toString()
default String
default byte[]
-
Constructor Details
-
SCAddress
public SCAddress() -
SCAddress
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAccountId
-
getContractId
-
setDiscriminant
-
setAccountId
-
setContractId
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-