boolean (final Object o) { if (this == o) return true; if (!(o instanceof FilterPattern)) return false; final FilterPattern that = (FilterPattern)o; if (myFilter != null ? !myFilter.equals(that.myFilter) : that.myFilter != null) return false; return true; }