/** * Allows MasterControl to specify the type parameter of WordInterface because * it allows Input to create instances of an implementation of WordInterface of * which the type is specified using generics Based on example in * https://stackoverflow.com/questions/2186931/java-pass-method-as-parameter * * Secret: creation of words, mostly a workaround * * @author Alexander Schaap * * @param * type of the word, String usually */ public interface WordCommandInterface { /** * Converts a given String (parsed from a file) to a Word of a certain type. * * @param s * - String to be converted * @return - A Word of a chosen type */ public WordInterface convert(String s); }