Ярлыки

вторник, 2 октября 2012 г.

neo4j: class RelTypeFilterExcluder example


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;
}

}

Комментариев нет:

Отправить комментарий