Class StaffRoleFilter

java.lang.Object
sc2002.services.StaffFiltering.StaffRoleFilter
All Implemented Interfaces:
StaffFilter

public class StaffRoleFilter extends Object implements StaffFilter
Filters staff members based on their role.
  • Constructor Details

    • StaffRoleFilter

      public StaffRoleFilter(Role role)
      Constructs a StaffRoleFilter with the specified role.
      Parameters:
      role - The role to filter by.
  • Method Details

    • filter

      public boolean filter(Staff staff)
      Filters the staff member based on role.
      Specified by:
      filter in interface StaffFilter
      Parameters:
      staff - The staff member to be filtered.
      Returns:
      True if the staff member's role matches the specified role, false otherwise.