| Constructor and Description |
|---|
YamlProvider() |
| 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) |
public boolean accountExists(String id)
accountExists in interface Providerpublic boolean removeAccount(String id)
removeAccount in interface Providerpublic boolean createAccount(String id, double defaultMoney)
createAccount in interface Providerpublic boolean setMoney(String id, double amount)
public boolean addMoney(String id, double amount)
public boolean reduceMoney(String id, double amount)
reduceMoney in interface Providerpublic LinkedHashMap<String,Double> getAll()
Copyright © 2023. All rights reserved.