package dk.itu.oop.lecture5; public class OddFilter extends FilterIterator{ private int count; // count indicates the number of times // condition has been called /*@post return = condition has been called an odd * number of times. */ protected boolean condition(Object obj){ count++; return count%2 ==1; } public OddFilter(OOPIterator in){ super(in); } }