Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » how to merge two collections
how to merge two collections [message #987208] Sat, 24 November 2012 13:54 Go to next message
Andrea Sindico is currently offline Andrea SindicoFriend
Messages: 266
Registered: November 2010
Senior Member

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


Follow me on Twitter @andreasindico

Re: how to merge two collections [message #987209 is a reply to message #987208] Sat, 24 November 2012 14:06 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7663
Registered: July 2009
Senior Member
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 14:16 Go to previous messageGo to next message
Andrea Sindico is currently offline Andrea SindicoFriend
Messages: 266
Registered: November 2010
Senior Member

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.



Follow me on Twitter @andreasindico

Re: how to merge two collections [message #987216 is a reply to message #987210] Sat, 24 November 2012 14:54 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7663
Registered: July 2009
Senior Member
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 15:51 Go to previous message
Kumar Trainer is currently offline Kumar TrainerFriend
Messages: 1
Registered: April 2024
Junior Member
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
Goto Forum:
  


Current Time: Sat Jul 13 16:17:34 GMT 2024

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

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

Back to the top