package utp;

import java.util.List;

public class PassiveListGenerator<T>  implements IPassiveGenerator<T> {
		private List<T> m_list;
		public PassiveListGenerator(List<T> list) {
		this.m_list = list;
		}
		public void generate(ICode<T> code) throws StopException {
		for(T elem : m_list) {
		code.execute(elem);
		}
	}
}
