Package org.stellar.sdk.operations
Class ChangeTrustOperation
java.lang.Object
org.stellar.sdk.operations.Operation
org.stellar.sdk.operations.ChangeTrustOperation
Represents ChangeTrust operation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ChangeTrustOperation.ChangeTrustOperationBuilder<C extends ChangeTrustOperation,
B extends ChangeTrustOperation.ChangeTrustOperationBuilder<C, B>> Nested classes/interfaces inherited from class org.stellar.sdk.operations.Operation
Operation.OperationBuilder<C extends Operation,
B extends Operation.OperationBuilder<C, B>> -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeTrustOperation.ChangeTrustOperationBuilder
<?, ?> builder()
boolean
static ChangeTrustOperation
fromXdr
(ChangeTrustOp op) Construct a newChangeTrustOperation
object from aChangeTrustOp
XDR object.@NonNull ChangeTrustAsset
getAsset()
The asset of the trustline.@NonNull BigDecimal
getLimit()
The limit of the trustline (max of 7 decimal places).int
hashCode()
toString()
Methods inherited from class org.stellar.sdk.operations.Operation
fromXdr, getSourceAccount, setSourceAccount, toXdr, toXdrBase64
-
Method Details
-
fromXdr
Construct a newChangeTrustOperation
object from aChangeTrustOp
XDR object.- Parameters:
op
-ChangeTrustOp
XDR object- Returns:
ChangeTrustOperation
object
-
builder
-
toBuilder
-
getAsset
The asset of the trustline. For example, if a gateway extends a trustline of up to 200 USD to a user, the line is USD. -
getLimit
The limit of the trustline (max of 7 decimal places). For example, if a gateway extends a trustline of up to 200 USD to a user, the limit is 200. -
toString
-
equals
-
hashCode
public int hashCode()
-