There is no such feature in java. By using the other API you will get this feature.
Like suppose we have a animal Object containing name and id. We have list object having animal objects. Now if we want to get the all the animal name which contains 'o' from list object. we can write the following query
from(animals).where("getName", contains("o")).all();
Above Query statement will list of the animals which contains 'o' alphabet in their name.
More information please go through following blog.
http://javaworldwide.blogspot.in/2012/09/linq-in-java.html