org.sakaiproject.util
Interface Filter

All Known Implementing Classes:
BaseAnnouncementService.PrivacyFilter, BaseDiscussionService.PrivacyFilter, BaseMessageService.MessagePermissionFilter, BaseMessageService.MessageSelectionFilter

public interface Filter

Filter is the Interface for Sakai Filter objects.

Filter objects are used with filtered iterator methods. The filter is given each object in the iteration. Only those that are accepted are returned as part of the iteration.

Version:
1.0
Author:
University of Michigan, Sakai Software Development Team

Method Summary
 boolean accept(Object o)
          Does this object satisfy the criteria of the filter?
 

Method Detail

accept

public boolean accept(Object o)
Does this object satisfy the criteria of the filter?

Returns:
true if the object is accepted by the filter, false if not.