Allow Java to iterate over the components of a group, make IComponentGroup inherit from Iterable
This PR addresses the issues brought up in PR #1864 without having to change the C++ code at all. Class GVRComponent.Group supplies the Java implementation for an iterable group which all component groups can share. This uses Java's language facilities instead of inventing our own scheme for iterating the groups.
Now you can do as follows:
IComponentGroup group;
group.addChildComponent(child1);
group.addChildComponent(child2);
for (XXX c : group) { do something }
GearVRF DCO signed off by: Nola Donato nola.donato@samsung.com
Allow Java to iterate over the components of a group, make IComponentGroup inherit from Iterable
This PR addresses the issues brought up in PR #1864 without having to change the C++ code at all. Class GVRComponent.Group supplies the Java implementation for an iterable group which all component groups can share. This uses Java's language facilities instead of inventing our own scheme for iterating the groups.
Now you can do as follows:
IComponentGroup group;
group.addChildComponent(child1);
group.addChildComponent(child2);
for (XXX c : group) { do something }
GearVRF DCO signed off by: Nola Donato nola.donato@samsung.com