Interface WorkVisitor<T>

Type Parameters:
T - used to force a return type of choice.
All Known Implementing Classes:
DpSelectionVisitor, LuceneWorkVisitor

public interface WorkVisitor<T>
A visitor delegate to manipulate a LuceneWork needs to implement this interface. This pattern enables any implementation to virtually add delegate methods to the base LuceneWork without having to change them. This contract however breaks if more subclasses of LuceneWork are created, as a visitor must support all existing types.