FluentIterable.index returns an ImmutableListMultimap
, which ceases to be fluent.
That means if I want to transform the existing map I will have to wrap the entire thing in another FluentIterable again, and the ugliness that results defeats the purpose of being fluent.
FluentIterable.from(
FluentIterable
.from(list)
.index(...)
.asMap().entrySet()) // this is less than ideal too
// Ideally I want to transform here so that I don't need the other .from call
.transform(....)
Is there a more fluent way to achieve this with guava? (without Java 8)