Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Using the xpand collection utilities from java
Using the xpand collection utilities from java [message #527939] Sat, 17 April 2010 00:47 Go to next message
Eclipse UserFriend
Is it possible to use the collect, select, reject. forAll, etc methods within a Java function ideally by providing an anonymous function for expression-with-e? These are very useful functions!

thanks
Re: Using the xpand collection utilities from java [message #527947 is a reply to message #527939] Sat, 17 April 2010 04:27 Go to previous messageGo to next message
Eclipse UserFriend
hi, i don't think they are easy to use cause these functions are deeply weaved into / depending from xpand/xtend - but you can reach the same goals better by using scala or groovy (which both offer closure support) or Apache Commons Collections (Class CollectionUtils) or Google Collections (Class Iterables) which may offer what you are looking for
Re: Using the xpand collection utilities from java [message #528218 is a reply to message #527939] Mon, 19 April 2010 13:40 Go to previous messageGo to next message
Eclipse UserFriend
I suggest to use Google Collections:
http://code.google.com/p/google-collections/

Sven

Roberto Salama schrieb:
> Is it possible to use the collect, select, reject. forAll, etc methods
> within a Java function ideally by providing an anonymous function for
> expression-with-e? These are very useful functions!
>
> thanks


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: Using the xpand collection utilities from java [message #528293 is a reply to message #527939] Mon, 19 April 2010 21:53 Go to previous message
Eclipse UserFriend
Thank you! this is exactly what I was looking for.

Regards,

roberto
Previous Topic:Recommended approach for generating XHTML from model data at runtime - XSLT/Xpand/?
Next Topic:Couldn´t find definition for
Goto Forum:
  


Current Time: Sat Jul 12 03:44:43 EDT 2025

Powered by FUDForum. Page generated in 0.04332 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top