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
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()default Stringdefault 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
-