Package org.stellar.sdk.xdr
Class AlphaNum12
java.lang.Object
org.stellar.sdk.xdr.AlphaNum12
- All Implemented Interfaces:
XdrElement
AlphaNum12's original definition in the XDR file is:
struct AlphaNum12
{
AssetCode12 assetCode;
AccountID issuer;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionAlphaNum12(AssetCode12 assetCode, AccountID issuer) Creates a newAlphaNum12instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AlphaNum12.AlphaNum12Builderbuilder()static AlphaNum12decode(XdrDataInputStream stream) static AlphaNum12decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic AlphaNum12static AlphaNum12fromXdrBase64(String xdr) static AlphaNum12fromXdrByteArray(byte[] xdr) Value of theassetCodefield.Value of theissuerfield.inthashCode()voidsetAssetCode(AssetCode12 assetCode) Value of theassetCodefield.voidValue of theissuerfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AlphaNum12
public AlphaNum12() -
AlphaNum12
Creates a newAlphaNum12instance.- Parameters:
assetCode- theassetCodefield valueissuer- theissuerfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getAssetCode
Value of theassetCodefield.- Returns:
- the
assetCodefield value
-
getIssuer
Value of theissuerfield.- Returns:
- the
issuerfield value
-
setAssetCode
Value of theassetCodefield.- Parameters:
assetCode- theassetCodefield value
-
setIssuer
Value of theissuerfield.- Parameters:
issuer- theissuerfield value
-
equals
-
hashCode
public int hashCode() -
toString
-