Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/sample/addressbook/controller/components/search/SearchFilter.java


1   /*
2    * SearchFilter.java
3    *
4    * Copyright (c) 2001, 2002 Aendvari, Ltd. All Rights Reserved.
5    *
6    * See the file LICENSE for terms of use.
7    *
8    */
9   
10  package com.sample.addressbook.controller.components.search;
11  
12  import java.io.Serializable;
13  
14  
15  /**
16   * Specifies a filter to determine which items to place in a search result.
17   *
18   * @author  Trevor Milne
19   *
20   */
21  
22  public interface SearchFilter
23  {
24    /**
25     * Returns true if the item number is included in the search result.
26     *
27     * @param    number            The item number.
28     *
29     * @return                  True if the item is in the result, false otherwise.
30     *
31     */
32  
33    public boolean isRetained(int number);
34  
35    /**
36     * Returns true if the item number is excluded from the search result.
37     *
38     * @param    number            The item number.
39     *
40     * @return                  True if the item is not in the result, false otherwise.
41     *
42     */
43  
44    public boolean isFiltered(int number);
45  }
46