diff --git a/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/cache/ResponseCache.java b/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/cache/ResponseCache.java index 2613fd395..7b2a3a433 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/cache/ResponseCache.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/webserver/response/cache/ResponseCache.java @@ -4,6 +4,7 @@ import com.djrapitops.plan.system.webserver.response.Response; import java.util.HashMap; import java.util.Map; +import java.util.function.Supplier; /** * This class contains the page cache. @@ -29,23 +30,23 @@ public class ResponseCache { /** * Loads the response from the response cache. *
- * If the {@link Response} isn't cached, {@link ResponseLoader#createResponse()} in the {@code loader} + * If the {@link Response} isn't cached, {@link Supplier#get()} in the {@code loader} * is called to create the Response. *
* If the Response is created, it's automatically cached.
*
* @param identifier The identifier of the page
- * @param loader The {@link ResponseLoader} (How should it load the page if it's not cached)
- * @return The Response that was cached or created by the {@link ResponseLoader loader}
+ * @param loader The The {@link Response} {@link Supplier} (How should it load the page if it's not cached)
+ * @return The Response that was cached or created by the the {@link Response} {@link Supplier}
*/
- public static Response loadResponse(String identifier, ResponseLoader loader) {
+ public static Response loadResponse(String identifier, Supplier