public Filter(String name,FilterType type,FilterPred pred,boolean enabled){
  if (name != null && !name.isEmpty())   this.name=name;
  this.type=type;
  this.pred=pred;
  this.enabled=enabled;
}

public Filter ( String name , FilterType type , FilterPred pred , boolean enabled ) { if ( name != null && ! name . isEmpty ( ) ) this . name = name ; this . type = type ; this . pred = pred ; this . enabled = enabled ; }
constructs a filter with the given name , type , predicate , and enabled flag .
