Package org.stellar.sdk.xdr
Class SetTrustLineFlagsOp
java.lang.Object
org.stellar.sdk.xdr.SetTrustLineFlagsOp
- All Implemented Interfaces:
XdrElement
SetTrustLineFlagsOp's original definition in the XDR file is:
struct SetTrustLineFlagsOp
{
AccountID trustor;
Asset asset;
uint32 clearFlags; // which flags to clear
uint32 setFlags; // which flags to set
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSetTrustLineFlagsOp(AccountID trustor, Asset asset, Uint32 clearFlags, Uint32 setFlags) Creates a newSetTrustLineFlagsOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SetTrustLineFlagsOpdecode(XdrDataInputStream stream) static SetTrustLineFlagsOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SetTrustLineFlagsOpstatic SetTrustLineFlagsOpfromXdrBase64(String xdr) static SetTrustLineFlagsOpfromXdrByteArray(byte[] xdr) getAsset()Value of theassetfield.Value of theclearFlagsfield.Value of thesetFlagsfield.Value of thetrustorfield.inthashCode()voidValue of theassetfield.voidsetClearFlags(Uint32 clearFlags) Value of theclearFlagsfield.voidsetSetFlags(Uint32 setFlags) Value of thesetFlagsfield.voidsetTrustor(AccountID trustor) Value of thetrustorfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SetTrustLineFlagsOp
public SetTrustLineFlagsOp() -
SetTrustLineFlagsOp
Creates a newSetTrustLineFlagsOpinstance.- Parameters:
trustor- thetrustorfield valueasset- theassetfield valueclearFlags- theclearFlagsfield valuesetFlags- thesetFlagsfield 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
public static SetTrustLineFlagsOp decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getTrustor
Value of thetrustorfield.- Returns:
- the
trustorfield value
-
getAsset
Value of theassetfield.- Returns:
- the
assetfield value
-
getClearFlags
Value of theclearFlagsfield.- Returns:
- the
clearFlagsfield value
-
getSetFlags
Value of thesetFlagsfield.- Returns:
- the
setFlagsfield value
-
setTrustor
Value of thetrustorfield.- Parameters:
trustor- thetrustorfield value
-
setAsset
Value of theassetfield.- Parameters:
asset- theassetfield value
-
setClearFlags
Value of theclearFlagsfield.- Parameters:
clearFlags- theclearFlagsfield value
-
setSetFlags
Value of thesetFlagsfield.- Parameters:
setFlags- thesetFlagsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-