There are default interface functions Function::andThen and Function::compose:
Function<Person, String> toCountry = personToAddress.andThen(addressToCountry);
There are default interface functions Function::andThen and Function::compose:
Function<Person, String> toCountry = personToAddress.andThen(addressToCountry);