Package util

Class CampFilter


  • public class CampFilter
    extends java.lang.Object
    The CampFilter provides a filter methods for user interface
    • Constructor Summary

      Constructors 
      Constructor Description
      CampFilter()
      Construct an instance of CampFilter
    • 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 camp
      static java.util.ArrayList<Camp> filterByDate​(java.util.ArrayList<Camp> camps, java.time.LocalDate date)
      filter by camp dates
      static java.util.ArrayList<Camp> filterByDescription​(java.util.ArrayList<Camp> camps, java.lang.String description)
      filter by camp description
      static java.util.ArrayList<Camp> filterByLocation​(java.util.ArrayList<Camp> camps, java.lang.String location)
      filter by camp location
      static java.util.ArrayList<Camp> filterByName​(java.util.ArrayList<Camp> camps, java.lang.String name)
      Filter by camp names
      static java.util.ArrayList<Camp> filterByStudent​(java.util.ArrayList<Camp> camps, java.lang.String studentID)
      filter by student participants involved in camp
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CampFilter

        public CampFilter()
        Construct an instance of CampFilter
    • 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 camps
        name - 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 camps
        date - 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 camps
        location - 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 camps
        description - 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 camps
        studentID - the studentId filter
        Returns:
        list of filtered camps results
      • filterByCommittee

        public static java.util.ArrayList<Camp> filterByCommittee​(java.util.ArrayList<Camp> camps,
                                                                  java.lang.String committeeID)
        filter by committee member involved in camp
        Parameters:
        camps - the list of camps
        committeeID - the committeeID filter
        Returns:
        list of filtered camps results