Skip to main content



      Home
Home » Modeling » OCL » how to merge two collections
how to merge two collections [message #987208] Sat, 24 November 2012 08:54 Go to next message
Eclipse UserFriend
I realized I don't know how to merge two collections.
I have a number of bags I need to merge in a single Bag/Set
Re: how to merge two collections [message #987209 is a reply to message #987208] Sat, 24 November 2012 09:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi

If you look in the OCL Stndard Libratuy (OMG specification or Help
Documentation) you will find documentation on the Collection operations.

Regards

Ed Willink



On 24/11/2012 13:54, Andrea Sindico wrote:
> I realized I don't know how to merge two collections. I have a number
> of bags I need to merge in a single Bag/Set
Re: how to merge two collections [message #987210 is a reply to message #987209] Sat, 24 November 2012 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Before to post this question I actually looked in the OMG specification 12-01-01, section 7.7 but I couldn't find the operation I need, although I am sure there is somewhere.

Re: how to merge two collections [message #987216 is a reply to message #987210] Sat, 24 November 2012 09:54 Go to previous messageGo to next message
Eclipse UserFriend
union ???


On 24/11/2012 14:16, Andrea Sindico wrote:
> Before to post this question I actually looked in the OMG
> specification 12-01-01, section 7.7 but I couldn't find the operation
> I need, although I am sure there is somewhere.
>
Re: how to merge two collections [message #1864904 is a reply to message #987216] Fri, 19 April 2024 11:51 Go to previous message
Eclipse UserFriend
Hi..

There are couple of options like using java 8 streams or google's guava library or with commons collections4

Hope this helps!
Thx
Previous Topic:Migration of "Sequencer" dependencies
Next Topic:Experiences from validation of CIMXML data
Goto Forum:
  


Current Time: Wed Jul 23 12:56:14 EDT 2025

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

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

Back to the top