how to create a generic method [closed]

1

I often have to do a method to fetch a table, for example getByCPF. I would like to make a generic method that I pass the column name and what I look for.

getByColumn(String column, Param param){

}

something like this.

    
asked by anonymous 13.11.2018 / 12:27

0 answers