Suppose the following objects :
public class Employee {
private Address address;
public class Address {
private String street;
private String country;
Which of the two following processes is the "best" (best practice and/or performance) ?
A :
return Mono.just(employee)
.map(employee -> employee.getAddress().getCountry())
B :
return Mono.just(employee)
.map(employee -> employee.getAddress())
.map(address -> address.getCountry())