diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-04-04 22:58:26 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-04-04 22:58:26 -0400 |
commit | f70e86470f7083cda1949ff97556d9e39578ce1d (patch) | |
tree | 5cc8a3e1089409e10fd92896625605a7f8f6897b /ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserFileDAO.java | |
parent | edfc9a8450d140ba1650b38e4b707000710b2faa (diff) | |
parent | 5a5d31896d79a736bce33b7d1aa7b3168ba308a9 (diff) | |
download | JellySolutions-f70e86470f7083cda1949ff97556d9e39578ce1d.tar.gz JellySolutions-f70e86470f7083cda1949ff97556d9e39578ce1d.tar.bz2 JellySolutions-f70e86470f7083cda1949ff97556d9e39578ce1d.zip |
Merge branch 'main' into need-list-abstraction
# Conflicts:
# ufund-ui/src/app/components/cupboard/cupboard.component.ts
# ufund-ui/src/app/components/funding-basket/funding-basket.component.html
# ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
# ufund-ui/src/app/components/need-list/need-list.component.html
# ufund-ui/src/app/components/need-list/need-list.component.ts
# ufund-ui/src/app/components/need-page/need-page.component.html
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserFileDAO.java')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserFileDAO.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserFileDAO.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserFileDAO.java index ec94da8..7f1fadd 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserFileDAO.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserFileDAO.java @@ -58,6 +58,13 @@ public class UserFileDAO implements UserDAO { } @Override + public int getUserCount() { + synchronized (users) { + return users.size(); + } + } + + @Override public User getUser(String username) { synchronized (users) { return users.getOrDefault(username, null); |