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
Nested ClassesModifier and TypeClassDescriptionstatic classChangeTrustOperation.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()booleanstatic ChangeTrustOperationfromXdr(ChangeTrustOp op) Construct a newChangeTrustOperationobject from aChangeTrustOpXDR object.@NonNull ChangeTrustAssetgetAsset()The asset of the trustline.@NonNull BigDecimalgetLimit()The limit of the trustline (max of 7 decimal places).inthashCode()toString()Methods inherited from class org.stellar.sdk.operations.Operation
formatAmountScale, fromXdr, fromXdrAmount, getSourceAccount, setSourceAccount, toXdr, toXdrAmount, toXdrBase64
-
Method Details
-
fromXdr
Construct a newChangeTrustOperationobject from aChangeTrustOpXDR object.- Parameters:
op-ChangeTrustOpXDR object- Returns:
ChangeTrustOperationobject
-
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()
-