public boolean accept(T obj){
  if (args.contains(obj)) {
    return judgment;
  }
 else {
    return !judgment;
  }
}

public boolean accept ( T obj ) { if ( args . contains ( obj ) ) { return judgment ; } else { return ! judgment ; } }
checks if the given object passes the filter .
