Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. List<List<IComponentsAction>> alternatives ...
  2. Set<List<IComponentsAction>> product ...
  3.  
  4. final Builder<Set<IComponentsAction>> builder = ImmutableList.<Set<IComponentsAction>>builder();
  5.  
  6. alternatives.forEach(pkg -> {
  7. builder.add(ImmutableSet.copyOf(pkg));
  8. });
  9.  
  10. product = Sets.cartesianProduct(builder.build());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement