finding out if alist of children contains a specific node

Hello,

is there an easy way to find out if a list of abstract childs contains a specific node?

In my example the root concept has a list of AbstracImports and a list of layers. Now a layer constraint should test if a specific import is present.

Thanks

2 comments
Comment actions Permalink

It's a simple collection so you can use contains or findFirst or any.

0
Comment actions Permalink

O.K. contains didn't work but any works fine.

Thanks

0

Please sign in to leave a comment.