Map<String, User> userById;
Map<String, Address> addrById;
Stream<User> users() {
return userById.values().stream();
}
Stream<UserAddress> userAddresses() {
return users().map(user -> {
Address addr = addrById.get(user.id());
return UserAddress.of(user, addr);
});
}