Jay: I was hoping there was some sort of List “get all elements” method instead of having to manually iterate through and get each one. It seems like it would
be a desirable operation, but I guess not…
Jordan: Thanks. I had no idea you can just cast to ArrayList in the constructor like that. I kept trying to use Arrays.asList() and running into problems.
From: ice-build-bounces@xxxxxxxxxxx [mailto:ice-build-bounces@xxxxxxxxxxx]
On Behalf Of Jordan Deyton
Sent: Monday, February 02, 2015 10:40 AM
To: ice-build@xxxxxxxxxxx
Subject: Re: [ice-build] [eclipse/ice] 380ddd: First pass at converting ResourceComponent to a su...
If what you're doing is trying to return a copy of the list of child ICEResources managed by the ResourceComponent, you could just return new ArrayList<ICEResource>(this). ResourceComponent is a sub-class of a Collection implementation.
Jordan
Jordan Deyton
Oak Ridge National Laboratory
Telephone: (865) 574-1091
Email: deytonjh@xxxxxxxx
On 1/30/2015 8:19 PM, Jay Jay Billings wrote:
Anna,
What about just looping over each element using ListComponent.get()?
Jay
_______________________________________________
ice-build mailing list
ice-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-build