Package org.stellar.sdk.xdr
Class ChangeTrustOp
java.lang.Object
org.stellar.sdk.xdr.ChangeTrustOp
- All Implemented Interfaces:
XdrElement
ChangeTrustOp's original definition in the XDR file is:
struct ChangeTrustOp
{
ChangeTrustAsset line;
// if limit is set to 0, deletes the trust line
int64 limit;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionChangeTrustOp(ChangeTrustAsset line, Int64 limit) Creates a newChangeTrustOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ChangeTrustOpdecode(XdrDataInputStream stream) static ChangeTrustOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ChangeTrustOpstatic ChangeTrustOpfromXdrBase64(String xdr) static ChangeTrustOpfromXdrByteArray(byte[] xdr) getLimit()Value of thelimitfield.getLine()Value of thelinefield.inthashCode()voidValue of thelimitfield.voidsetLine(ChangeTrustAsset line) Value of thelinefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ChangeTrustOp
public ChangeTrustOp() -
ChangeTrustOp
Creates a newChangeTrustOpinstance.- Parameters:
line- thelinefield valuelimit- thelimitfield 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
-
getLine
Value of thelinefield.- Returns:
- the
linefield value
-
getLimit
Value of thelimitfield.- Returns:
- the
limitfield value
-
setLine
Value of thelinefield.- Parameters:
line- thelinefield value
-
setLimit
Value of thelimitfield.- Parameters:
limit- thelimitfield value
-
equals
-
hashCode
public int hashCode() -
toString
-