Package sc2002.services.StaffFiltering
Class StaffRoleFilter
java.lang.Object
sc2002.services.StaffFiltering.StaffRoleFilter
- All Implemented Interfaces:
StaffFilter
Filters staff members based on their role.
-
Constructor Summary
ConstructorsConstructorDescriptionStaffRoleFilter(Role role) Constructs a StaffRoleFilter with the specified role. -
Method Summary
-
Constructor Details
-
StaffRoleFilter
Constructs a StaffRoleFilter with the specified role.- Parameters:
role- The role to filter by.
-
-
Method Details
-
filter
Filters the staff member based on role.- Specified by:
filterin interfaceStaffFilter- Parameters:
staff- The staff member to be filtered.- Returns:
- True if the staff member's role matches the specified role, false otherwise.
-