@@ -0,0 +1,2047 @@
+package org.axonframework.queryhandling;%0A%0A/**%0A * Utility class containing static methods to obtain instances of %7B@link org.axonframework.queryhandling.ResponseType%7D.%0A *%0A * @author Steven van Beelen%0A * @since 3.2%0A */%0Apublic abstract class ResponseTypes %7B%0A%0A    /**%0A     * Specify the desire to retrieve a single instance of type %7B@code T%7D when performing a query.%0A     *%0A     * @param type the %7B@code T%7D which is expected to be the response type%0A     * @param %3CT%3E  the generic type of the instantiated %7B@link org.axonframework.queryhandling.ResponseType%7D%0A     * @return a %7B@link org.axonframework.queryhandling.ResponseType%7D specifying the desire to retrieve a single%0A     * instance of type %7B@code T%7D%0A     */%0A    public static %3CT%3E ResponseType%3CT%3E instanceOf(T type) %7B%0A        return new InstanceResponseType%3C%3E(type.getClass());%0A    %7D%0A%0A    /**%0A     * Specify the desire to retrieve a list of instances of type %7B@code T%7D when performing a query.%0A     *%0A     * @param type the %7B@code T%7D which is expected to be the response type%0A     * @param %3CT%3E  the generic type of the instantiated %7B@link org.axonframework.queryhandling.ResponseType%7D%0A     * @return a %7B@link org.axonframework.queryhandling.ResponseType%7D specifying the desire to retrieve a list of%0A     * instances of type %7B@code T%7D%0A     */%0A    public static %3CT%3E ResponseType%3CT%3E listOf(T type) %7B%0A        return new ListResponseType%3C%3E(type.getClass());%0A    %7D%0A%0A    /**%0A     * Specify the desire to retrieve a page of instances of type %7B@code T%7D when performing a query.%0A     *%0A     * @param type the %7B@code T%7D which is expected to be the response type%0A     * @param %3CT%3E  the generic type of the instantiated %7B@link org.axonframework.queryhandling.ResponseType%7D%0A     * @return a %7B@link org.axonframework.queryhandling.ResponseType%7D specifying the desire to retrieve a page of%0A     * instances of type %7B@code T%7D%0A     */%0A    public static %3CT%3E ResponseType%3CT%3E pageOf(T type) %7B%0A        return new PageResponseType%3C%3E(type.getClass());%0A    %7D%0A%0A    private ResponseTypes() %7B%0A        // Utility class%0A    %7D%0A%7D%0A

Create utility class to instantiate ResponseTypes