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

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