Package org.stellar.sdk.xdr
Class AlphaNum4
java.lang.Object
org.stellar.sdk.xdr.AlphaNum4
- All Implemented Interfaces:
XdrElement
AlphaNum4's original definition in the XDR file is:
struct AlphaNum4
{
AssetCode4 assetCode;
AccountID issuer;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionAlphaNum4(AssetCode4 assetCode, AccountID issuer) Creates a newAlphaNum4instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AlphaNum4.AlphaNum4Builderbuilder()static AlphaNum4decode(XdrDataInputStream stream) static AlphaNum4decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic AlphaNum4static AlphaNum4fromXdrBase64(String xdr) static AlphaNum4fromXdrByteArray(byte[] xdr) Value of theassetCodefield.Value of theissuerfield.inthashCode()voidsetAssetCode(AssetCode4 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
-
AlphaNum4
public AlphaNum4() -
AlphaNum4
Creates a newAlphaNum4instance.- 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
-