Class DoubleArgumentNode
java.lang.Object
me.efekos.simpler.commands.node.CommandNode
me.efekos.simpler.commands.node.ArgumentNode
me.efekos.simpler.commands.node.impl.DoubleArgumentNode
An example of custom 
ArgumentNodes. Represents a number argument that can have numbers at the bounds of
 Double. You can also put a minimum and maximum value.- 
Constructor Summary
ConstructorsConstructorDescriptionDoubleArgumentNode(double min, double max, CommandNode... children) Creates a new node for use.DoubleArgumentNode(CommandNode... children) Creates a new node for use. - 
Method Summary
Methods inherited from class me.efekos.simpler.commands.node.CommandNode
addChild, addChild, getChildren, getConsoleExecutive, getDescription, getExecutive, getParent, getPermission, setConsoleExecutive, setDescription, setExecutive, setParent, setPermission 
- 
Constructor Details
- 
DoubleArgumentNode
Creates a new node for use.- Parameters:
 min- Minimum number for this argument.max- Maximum number for this argument.children- Any child to add to this node if you would like to. You can still add children usingCommandNode.addChild(CommandNode)later.
 - 
DoubleArgumentNode
Creates a new node for use.- Parameters:
 children- Any child to add to this node if you would like to. You can still add children usingCommandNode.addChild(CommandNode)later.
 
 - 
 - 
Method Details
- 
isCorrect
Checks for a given argument and ensures that the argument is correct.- Specified by:
 isCorrectin classArgumentNode- Parameters:
 given- Argument that was given for this node.- Returns:
 - Whether the argument is correct or not.
 
 - 
suggest
Provides a list that can be added to the final list of tab completion.- Specified by:
 suggestin classCommandNode- Parameters:
 sender- Sender that needs a tab completion. Probably aPlayersince console doesn't need a tab completion.args- List of the other arguments given by the sender.- Returns:
 - A list for tab completion.
 
 
 -