Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

lavieri

By: a guest on Apr 2nd, 2009  |  syntax: Java  |  size: 0.52 KB  |  hits: 155  |  expires: Never
download  |  raw  |  embed  |  report abuse
This paste has a previous version, view the difference. Copied
  1. /**
  2.  * Filtro de objeto, que testa se um obejto candidato T confere com o filtro.
  3.  * @author Tomaz Lavieri
  4.  * @param <T> o tipo de objetos que o filtro testa.
  5.  * @see CollectionUtils
  6.  */
  7. public interface Filter<T> {
  8.     /**
  9.      * Verifica se o objeto candidato passa pelo filtro.
  10.      * @param candidate Objeto candidato.
  11.      * @return  <tt>true</tt> - caso o candidato passe no filtro.
  12.      *          <br><tt>false</tt> - caso o candidato não pesse pelo filtro.
  13.      */
  14.     public boolean match(T candidate);
  15. }