- 
- All Superinterfaces:
- Connector.Argument,- Serializable
 - Enclosing interface:
- Connector
 
 public static interface Connector.IntegerArgument extends Connector.Argument Specification for and value of a Connector argument, whose value is an integer. Integer values are represented by their corresponding strings.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intintValue()Return the value of the argument as a int.booleanisValid(int value)Performs basic sanity check of argument.booleanisValid(String value)Performs basic sanity check of argument.intmax()The upper bound for the value.intmin()The lower bound for the value.voidsetValue(int value)Sets the value of the argument.StringstringValueOf(int value)Return the string representation of thevalueparameter.- 
Methods declared in interface com.sun.jdi.connect.Connector.Argumentdescription, label, mustSpecify, name, setValue, value
 
- 
 
- 
- 
- 
Method Detail- 
setValuevoid setValue(int value) Sets the value of the argument. The value should be checked withisValid(int)before setting it; invalid values will throw an exception when the connection is established - for example, onLaunchingConnector.launch(java.util.Map<java.lang.String, ? extends com.sun.jdi.connect.Connector.Argument>)
 - 
isValidboolean isValid(String value) Performs basic sanity check of argument.- Specified by:
- isValidin interface- Connector.Argument
- Returns:
- trueif value represents an int that is- min()<= value <=- max()
 
 - 
isValidboolean isValid(int value) Performs basic sanity check of argument.
 - 
stringValueOfString stringValueOf(int value) Return the string representation of thevalueparameter. Does not set or examine the current value ofthisinstance.- Returns:
- the String representation of the int value.
 
 - 
intValueint intValue() Return the value of the argument as a int. Since the argument may not have been set or may have an invalid valueisValid(String)should be called onConnector.Argument.value()to check its validity. If it is invalid the int returned by this method is undefined.- Returns:
- the value of the argument as a int.
 
 - 
maxint max() The upper bound for the value.- Returns:
- the maximum allowed value for this argument.
 
 - 
minint min() The lower bound for the value.- Returns:
- the minimum allowed value for this argument.
 
 
- 
 
-