From be5def3f16a12863e65e49609989a370d5b5f703 Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Sat, 15 Feb 2025 15:36:44 -0500 Subject: Updated comment wording --- ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardDAO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ufund-api/src/main/java/com') diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardDAO.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardDAO.java index 65a6656..4e67cf7 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardDAO.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardDAO.java @@ -18,7 +18,7 @@ public interface CupboardDAO { Need[] getNeeds() throws IOException; /** - * Finds all {@linkplain Hero heroes} whose name contains the given text + * Finds all {@linkplain Need needs} whose name contains the given text * * @param containsText The text to match against * @@ -44,7 +44,7 @@ public interface CupboardDAO { /** * Creates and saves a {@linkplain Need need} * - * @param hero {@linkplain Need need} object to be created and saved + * @param need {@linkplain Need need} object to be created and saved *
* The id of the need object is automatically incremented. * -- cgit v1.2.3 From e4093fedb6ddf04f45caef8b592ec2201143ab89 Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Sat, 15 Feb 2025 15:39:19 -0500 Subject: Implemented Cupboard file dao class --- .../com/ufund/api/ufundapi/CupboardFileDao.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardFileDao.java (limited to 'ufund-api/src/main/java/com') diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardFileDao.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardFileDao.java new file mode 100644 index 0000000..dda20b8 --- /dev/null +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/CupboardFileDao.java @@ -0,0 +1,27 @@ +package com.ufund.api.ufundapi; + +import java.util.ArrayList; + +public class CupboardFileDao { + + private ArrayList needs; + private final String filePath; + + public CupboardFileDao(String filepath) { + this.filePath = filepath; + } + + public ArrayList getNeeds() { + return needs; + } + + public String getFilePath() { + return filePath; + } + + public void addNeed(Need need) { + needs.add(need); + } + + +} \ No newline at end of file -- cgit v1.2.3