boolean (Entry entry) { Object o = entry.getValue(index); if (o == null) { return false; } Format fmt = ed.getFormat(); String s = (fmt == null) ? o.toString() : fmt.format(o); return pattern.matcher(s).matches(); }