Let's say I do "someList = getSomeList(Something.class)" and it returns a list of objects, is there a way to do "someList.someMethod()" to call "someMethod()" in all of the returned objects?


for (Object actor : getObjects(Light.class)) ((Light) actor).setLuminsAt(50);