From: David ‘Bombe’ Roden Date: Wed, 2 Jan 2013 10:01:01 +0000 (+0100) Subject: Add type parameter for the state. X-Git-Tag: 0.1~124 X-Git-Url: https://git.pterodactylus.net/?p=rhynodge.git;a=commitdiff_plain;h=c8ae1f48817b3f1c719a66f17ccc7553859812c0 Add type parameter for the state. --- 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(); }