Fluent java functions and interfaces