Class CommandMakerHelpers
java.lang.Object
net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanargAmountCheck(int min, int max, List<String> args) Checks for an amount of args, contained between a min and a maxstatic booleanargAmountCheck(int amount, List<String> args) Checks for an amount of args, being a fixed amountstatic booleanargAmountCheck(List<String> args, int... allowed) Checks for an amount of args, being contained in a given list of allowed amountsstatic booleancheckNoArgs(List<String> args) Checks if there are no args
-
Field Details
-
tab
A contant for the tabulation- See Also:
-
tabLine
A constant for a tabulation, preceded by a new line.- See Also:
-
tabArrow
A constant for a tab, preceding an arrow (and space at the end)- See Also:
-
-
Constructor Details
-
CommandMakerHelpers
public CommandMakerHelpers()
-
-
Method Details
-
argAmountCheck
Checks for an amount of args, contained between a min and a max- Parameters:
min- the minimum amount of argsmax- the maximum amount of argsargs- the args to check- Returns:
- if the args are good
-
argAmountCheck
Checks for an amount of args, being a fixed amount- Parameters:
amount- the exact amount of args you wantargs- the args to check- Returns:
- if the args are good
-
argAmountCheck
Checks for an amount of args, being contained in a given list of allowed amounts- Parameters:
args- the args to checkallowed- the varargs of amount of args allowed- Returns:
- if the arg are good
-
checkNoArgs
Checks if there are no args- Parameters:
args- args to check- Returns:
- if there are no args
-