I have a situation where I want to extract multiple values โโfrom several source objects into a collection. I tried to achieve this using the Guava transform, but I ran into the problem that I was returning a collection of collections that I had to "smooth out" manually. Is there a good way to return results directly to a flat collection?
private static final Function<Target, Collection<Integer>> EXTRACT_FUNCTION = new Function<SourceObject, Collection<Integer>>() { @Override public Collection<Integer> apply(SourceObject o) {
source share