public interface Provider
| Modifier and Type | Method and Description |
|---|---|
boolean |
accountExists(String id) |
boolean |
addMoney(String id,
double amount) |
void |
close() |
boolean |
createAccount(String id,
double defaultMoney) |
LinkedHashMap<String,Double> |
getAll() |
double |
getMoney(String id) |
String |
getName() |
void |
init(File path) |
void |
open() |
boolean |
reduceMoney(String id,
double amount) |
boolean |
removeAccount(String id) |
void |
save() |
boolean |
setMoney(String id,
double amount) |
void init(File path)
void open()
void save()
void close()
boolean accountExists(String id)
boolean removeAccount(String id)
boolean createAccount(String id, double defaultMoney)
boolean setMoney(String id, double amount)
boolean addMoney(String id, double amount)
boolean reduceMoney(String id, double amount)
double getMoney(String id)
LinkedHashMap<String,Double> getAll()
String getName()
Copyright © 2021. All rights reserved.