FabHotels interview question

What is predicate in java?