/* Select image files smaller than 40000 */ public class SmallImageFile implements ISelect { /* Return true if the given ImageFile is smaller than 40000 */ public boolean select(ImageFile f) { if ((f).height * (f).width < 40000) { return true; } else { return false; } } }