919293949596979899100101
Set groundActions = new HashSet(); Iterator ait = actions.iterator(); while (ait.hasNext()) { Operator o = (Operator) ait.next(); Set s = o.ground(this); groundActions.addAll(s); } //static-ify the functions Iterator gait = groundActions.iterator();