public abstract class Operation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Operation.OperationBuilder<C extends Operation,B extends Operation.OperationBuilder<C,B>> |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static java.math.BigDecimal |
formatAmountScale(java.math.BigDecimal value) |
static Operation |
fromXdr(Operation xdr)
Returns new Operation object from Operation XDR object.
|
static java.math.BigDecimal |
fromXdrAmount(long value) |
java.lang.String |
getSourceAccount()
The source account for the operation.
|
int |
hashCode() |
void |
setSourceAccount(java.lang.String sourceAccount)
The source account for the operation.
|
Operation |
toXdr()
Generates Operation XDR object.
|
static long |
toXdrAmount(@NonNull java.math.BigDecimal value) |
java.lang.String |
toXdrBase64()
Returns base64-encoded Operation XDR object.
|
public static long toXdrAmount(@NonNull @NonNull java.math.BigDecimal value)
public static java.math.BigDecimal fromXdrAmount(long value)
public static java.math.BigDecimal formatAmountScale(java.math.BigDecimal value)
public Operation toXdr()
public java.lang.String toXdrBase64()
public static Operation fromXdr(Operation xdr)
xdr
- XDR objectpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getSourceAccount()
public void setSourceAccount(java.lang.String sourceAccount)