@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (obj instanceof NegateFilter) {
      return filter.equals(((NegateFilter)obj).filter);
    }
    return false;
  }
@Override
  public boolean equals(Object obj)