groostav
Deferred<TypeA> first = thirdPartyService.foo(); Deferred<TypeA> second = map(first, (a) -> { a.setXyz("xyz") }); Deferred<TypeA> third = map(second, (a) -> { if(a.getXyz().equals("abc"){ //do something } })