Class CommandDataConverter
- java.lang.Object
-
- top.focess.qq.api.command.DataConverter<T>
-
- top.focess.qq.api.command.converter.NullDataConverter<Command>
-
- top.focess.qq.api.command.converter.CommandDataConverter
-
public class CommandDataConverter extends NullDataConverter<Command>
Convert the String argument to Command argument
-
-
Field Summary
Fields Modifier and Type Field Description static CommandDataConverterCOMMAND_DATA_CONVERTERConvert the String argument to Command argument-
Fields inherited from class top.focess.qq.api.command.DataConverter
BOOLEAN_DATA_CONVERTER, DEFAULT_DATA_CONVERTER, DOUBLE_DATA_CONVERTER, DOUBLE_PREDICATE, INTEGER_DATA_CONVERTER, INTEGER_PREDICATE, LONG_DATA_CONVERTER, LONG_PREDICATE
-
-
Constructor Summary
Constructors Constructor Description CommandDataConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commandconvert(String s)Convert String argument to target argumentprotected Class<Command>getTargetClass()-
Methods inherited from class top.focess.qq.api.command.converter.NullDataConverter
accept
-
-
-
-
Field Detail
-
COMMAND_DATA_CONVERTER
public static final CommandDataConverter COMMAND_DATA_CONVERTER
Convert the String argument to Command argument
-
-
Method Detail
-
convert
public Command convert(String s)
Description copied from class:DataConverterConvert String argument to target argument- Specified by:
convertin classDataConverter<Command>- Parameters:
s- the target argument in String- Returns:
- the target argument
-
getTargetClass
protected Class<Command> getTargetClass()
- Specified by:
getTargetClassin classDataConverter<Command>
-
-