public class RelTypeFilterExcluder implements Predicate<Object> {
Set<String> exclude;
public RelTypeFilterExcluder(Set<String> excludeInput) {
this.exclude = excludeInput;
}
@Override
public boolean accept(Object arg0) {
String typeItem = ((PropertyContainer) arg0).getProperty("type").toString();
if ( this.exclude.contains(typeItem) ) {
return false;
}
return true;
}
}
Комментариев нет:
Отправить комментарий