Python Method Chaining In Java