package uk.ac.ebi.quickgo.rest.search.query;


/**
 * Represents the simplest of {@link QuickGOQuery} objects, containing just the field and values to query against.
 */
public class AllQuery extends QuickGOQuery {

    public AllQuery() {  }


    @Override public <T> T accept(QueryVisitor<T> visitor) {
        return visitor.visit(this);
    }

}

package uk.ac.ebi.quickgo.rest.search.query;

/**
 * Represents a selection of all the records within a data source.
 *
 * @author Tony Wardell.
 */
class AllQuery extends QuickGOQuery {

    @Override public <T> T accept(QueryVisitor<T> visitor) {
        return visitor.visit(this);
    }
}

Improve Javadocs.