From c8ae1f48817b3f1c719a66f17ccc7553859812c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 2 Jan 2013 11:01:01 +0100 Subject: [PATCH] Add type parameter for the state. --- src/main/java/net/pterodactylus/reactor/Query.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/reactor/Query.java b/src/main/java/net/pterodactylus/reactor/Query.java index 0b46a39..cc868bb 100644 --- a/src/main/java/net/pterodactylus/reactor/Query.java +++ b/src/main/java/net/pterodactylus/reactor/Query.java @@ -20,9 +20,11 @@ package net.pterodactylus.reactor; /** * A query is used to retrieve the current {@link State} of a system. * + * @param + * The type of the state * @author David ‘Bombe’ Roden */ -public interface Query { +public interface Query { /** * Retrieves the current state of the system. The returned state is never @@ -30,6 +32,6 @@ public interface Query { * * @return The current state of the system. */ - public State state(); + public S state(); } -- 2.7.4