how to create a generic method

Asked

Viewed 21 times

1

Many times I have to make a method to search in a table, for example getByCPF. I would like to make a generic method that I pass the name of the column and what I seek.

getByColumn(String column, Param param){

}

something like that.

  • you want to send the column out of function is this ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.