In the current groovy-stream master branch (0.8), I'm adding Java support.
Say you have two lists, [1, 2, 3]
and [4, 5, 6]
and you want to print all the sums of these numbers that are odd.
You can now do this in Java 1.6+
Map<String,List<Integer>> map = new HashMap<String,List<Integer>>() {{
put( "x", Arrays.asList( 1, 2, 3 ) ) ;
put( "y", Arrays.asList( 4, 5, 6 ) ) ;