Class InputCommandCreate
java.lang.Object
com.iohao.net.extension.client.InputCommandCreate
Helper for creating simulated input commands within a module command region.
- Author:
- 渔民小镇
- date:
- 2023-07-09
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInputCommand(int subCmd) nextParamInt(String paramTips) nextParamLong(String paramTips) nextParamString(String paramTips) ofCmdInfo(int subCmd) ofInputCommand(int subCmd) Creates a simulated command.ofInputCommandInt(int subCmd) ofInputCommandLong(int subCmd) Creates a simulated command that reads alongrequest parameter from the console.ofInputCommandString(int subCmd) ofInputCommandUserId(int subCmd) Creates a simulated command that reads a target userId (long) from the console.
-
Constructor Details
-
InputCommandCreate
public InputCommandCreate()
-
-
Method Details
-
ofCmdInfo
-
getInputCommand
-
ofInputCommand
Creates a simulated command.- Parameters:
subCmd- sub-command route- Returns:
- InputCommand
-
ofInputCommandLong
Creates a simulated command that reads alongrequest parameter from the console.- Parameters:
subCmd- sub-command route- Returns:
- InputCommand
-
ofInputCommandUserId
Creates a simulated command that reads a target userId (long) from the console.- Parameters:
subCmd- sub-command route- Returns:
- InputCommand
-
nextParamLong
-
ofInputCommandInt
-
nextParamInt
-
ofInputCommandString
-
nextParamString
-