/** Test whether a statement should be included in a selection. This method * tests whether the supplied statement satisfies the subject, predicate and * object constraints of the selector and then tests whether it matches the * application provided <CODE>selects</CODE> method. * @param s the statement to be tested * @return true if the statement satisfies the subject, object * and predicate constraints and the selects constraint. */ @Override public boolean test(Statement s) { return (subject == null || subject.equals(s.getSubject())) && (predicate == null || predicate.equals(s.getPredicate())) && (object == null || object.equals(s.getObject())) && selects(s); }