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 protected voidconnect(DataCollection dataCollection, Command command)Used to put data into the dataCollectionCommandconvert(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
-
connect
protected void connect(DataCollection dataCollection, Command command)
Description copied from class:DataConverterUsed to put data into the dataCollection- Specified by:
connectin classDataConverter<Command>- Parameters:
dataCollection- where stores the datacommand- the target argument- See Also:
DataCollection.write(Class, Object)
-
getTargetClass
protected Class<Command> getTargetClass()
- Specified by:
getTargetClassin classDataConverter<Command>
-
-