public class PendingBalance
extends java.lang.Object
| Constructor and Description |
|---|
PendingBalance()
Constructs empty PendingBalance object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(double amount,
java.time.LocalDateTime availability)
Adds specified amount to this PendingBalance
|
double |
getPendingBalance()
Returns total amount of this PendingBalance
|
double |
transferPendingToActive()
Returns amount from this PendingBalance that is no longer pending
removes non-pending amount from this PendingBalance
|
public double getPendingBalance()
public double transferPendingToActive()
public void add(double amount,
java.time.LocalDateTime availability)
amount - the amount to add to this PendingBalanceavailability - the time when the given amount will no longer be pending