com.sun.labs.minion.test
Class CrossIndexDV.ArtistFilter

java.lang.Object
  extended by com.sun.labs.minion.test.CrossIndexDV.ArtistFilter
All Implemented Interfaces:
ResultsFilter
Enclosing class:
CrossIndexDV

public class CrossIndexDV.ArtistFilter
extends java.lang.Object
implements ResultsFilter


Constructor Summary
CrossIndexDV.ArtistFilter()
           
 
Method Summary
 boolean filter(ResultAccessor ra)
          Runs the filter against the result currently under consideration.
 int getPassed()
          Gets the number of times that a result passed the filter.
 int getTested()
          Gets the number of times that the filter was used during the collection of search results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossIndexDV.ArtistFilter

public CrossIndexDV.ArtistFilter()
Method Detail

filter

public boolean filter(ResultAccessor ra)
Description copied from interface: ResultsFilter
Runs the filter against the result currently under consideration.

Specified by:
filter in interface ResultsFilter
Parameters:
ra - an accessor that can be used to get information about the current result. Note that the accessor is only valid for this call of the filter.
Returns:
true if the current result should be included in the results returned to the user, false if it should not.

getTested

public int getTested()
Description copied from interface: ResultsFilter
Gets the number of times that the filter was used during the collection of search results.

Specified by:
getTested in interface ResultsFilter

getPassed

public int getPassed()
Description copied from interface: ResultsFilter
Gets the number of times that a result passed the filter.

Specified by:
getPassed in interface ResultsFilter