Package org.stellar.sdk.xdr
Class SCAddress
java.lang.Object
org.stellar.sdk.xdr.SCAddress
- All Implemented Interfaces:
XdrElement
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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SCAddress.SCAddressBuilderbuilder()static SCAddressdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SCAddressfromXdrBase64(String xdr) static SCAddressfromXdrByteArray(byte[] xdr) inthashCode()voidsetAccountId(AccountID accountId) voidsetContractId(Hash contractId) voidsetDiscriminant(SCAddressType discriminant) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCAddress
public SCAddress() -
SCAddress
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- 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
-