Better Java syntax for Query Builder API

I don't know if you have good arguments to use Object but in most case, we can avoid it without side-effects.