- java.lang.Object
-
- util.CampFilter
-
public class CampFilter extends java.lang.Object
TheCampFilter
provides a filter methods for user interface
-
-
Constructor Summary
Constructors Constructor Description CampFilter()
Construct an instance ofCampFilter
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.ArrayList<Camp>
filterByCommittee(java.util.ArrayList<Camp> camps, java.lang.String committeeID)
filter by committee member involved in campstatic java.util.ArrayList<Camp>
filterByDate(java.util.ArrayList<Camp> camps, java.time.LocalDate date)
filter by camp datesstatic java.util.ArrayList<Camp>
filterByDescription(java.util.ArrayList<Camp> camps, java.lang.String description)
filter by camp descriptionstatic java.util.ArrayList<Camp>
filterByLocation(java.util.ArrayList<Camp> camps, java.lang.String location)
filter by camp locationstatic java.util.ArrayList<Camp>
filterByName(java.util.ArrayList<Camp> camps, java.lang.String name)
Filter by camp namesstatic java.util.ArrayList<Camp>
filterByStudent(java.util.ArrayList<Camp> camps, java.lang.String studentID)
filter by student participants involved in camp
-
-
-
Constructor Detail
-
CampFilter
public CampFilter()
Construct an instance ofCampFilter
-
-
Method Detail
-
filterByName
public static java.util.ArrayList<Camp> filterByName(java.util.ArrayList<Camp> camps, java.lang.String name)
Filter by camp names- Parameters:
camps
- the list of campsname
- the string filter- Returns:
- list of filtered camps results
-
filterByDate
public static java.util.ArrayList<Camp> filterByDate(java.util.ArrayList<Camp> camps, java.time.LocalDate date)
filter by camp dates- Parameters:
camps
- the list of campsdate
- the date filter- Returns:
- list of filtered camps results
-
filterByLocation
public static java.util.ArrayList<Camp> filterByLocation(java.util.ArrayList<Camp> camps, java.lang.String location)
filter by camp location- Parameters:
camps
- the list of campslocation
- the location filter- Returns:
- list of filtered camps results
-
filterByDescription
public static java.util.ArrayList<Camp> filterByDescription(java.util.ArrayList<Camp> camps, java.lang.String description)
filter by camp description- Parameters:
camps
- the list of campsdescription
- the description filter- Returns:
- list of filtered camps results
-
filterByStudent
public static java.util.ArrayList<Camp> filterByStudent(java.util.ArrayList<Camp> camps, java.lang.String studentID)
filter by student participants involved in camp- Parameters:
camps
- the list of campsstudentID
- the studentId filter- Returns:
- list of filtered camps results
-
-