SHARE
TWEET

Untitled

a guest Jun 18th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface View<T extends Role> {
  2.     public boolean existe(T obj);
  3. }
  4.  
  5. public class AlgumaClasse implements Role<Diretor> {
  6.     public boolean existe(Diretor diretor) {
  7.         for (Diretor d : this.tmDiretor.getLstDiretores()) if (d.getId().equals(diretor.getId())) return true;
  8.         return false;
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top