/** * Returns the amount of the <code>currency</code> in this balance that may be withdrawn. Equal to * <code>available - borrowed</code>. * * @return the amount that is available to withdraw. */ public BigDecimal getAvailableForWithdrawal() { return getAvailable().subtract(getBorrowed()); }
public static Builder from(Balance balance) { return new Builder() .currency(balance.getCurrency()) .total(balance.getTotal()) .available(balance.getAvailable()) .frozen(balance.getFrozen()) .borrowed(balance.getBorrowed()) .loaned(balance.getLoaned()) .withdrawing(balance.getWithdrawing()) .depositing(balance.getDepositing()); }
/** * Returns the amount of the <code>currency</code> in this balance that may be withdrawn. Equal to * <code>available - borrowed</code>. * * @return the amount that is available to withdraw. */ public BigDecimal getAvailableForWithdrawal() { return getAvailable().subtract(getBorrowed()); }
public static Builder from(Balance balance) { return new Builder() .currency(balance.getCurrency()) .total(balance.getTotal()) .available(balance.getAvailable()) .frozen(balance.getFrozen()) .borrowed(balance.getBorrowed()) .loaned(balance.getLoaned()) .withdrawing(balance.getWithdrawing()) .depositing(balance.getDepositing()); }