package br.edu.ifba.ads.mediaCenter.util;

public class Buscador{
  
    public Buscavel buscar(Buscavel[] buscaveis, Object id){
        for(Buscavel b : buscaveis)
            if(b.ehChave(id))
              return b;
        throw new Exception();      
    }    
}
