Yeah, I hope I am interpreting this the wrong the way. But instead of doing
X.getA().getB().getC().getD()
we have to X.flatMap(X::getA)
.flatMap(X::getB)
.map(X::getC)
.orElse("UNKNOWN"); //[1]
Not sure why this is going to be better?[1] http://www.oracle.com/technetwork/articles/java/java8-option...