I can not figure out a way to perform case insensitive search on a list, and at the sae time not make it word specific. For example searching for "anim" would return the results from the list that have those characters in that sequence so if there is word "animal" that list entry will be returned. Same goes for something like "als ea" so if there is "animals eat grass" or something like that in a list, return that entry.
Currently my list looks like
List<Animal> animals = database.getAllAnimals();
Essentially gets all data from animals, I then want to filter this whole data (I understand it might not be most efficient way and can be done in SQL, but this is how I need to do it) with a search term, lets assume for now searchTerm = "abc"
and then make animals
list only contain entries that return positive search results.