- All Superinterfaces:
Connector.Argument
,Serializable
- Enclosing interface:
- Connector
Specification for and value of a Connector argument,
whose value is an integer. Integer values are represented
by their corresponding strings.
-
Method Summary
Modifier and TypeMethodDescriptionint
intValue()
Return the value of the argument as a int.boolean
isValid
(int value) Performs basic sanity check of argument.boolean
Performs basic sanity check of argument.int
max()
The upper bound for the value.int
min()
The lower bound for the value.void
setValue
(int value) Sets the value of the argument.stringValueOf
(int value) Return the string representation of thevalue
parameter.Methods declared in interface com.sun.jdi.connect.Connector.Argument
description, label, mustSpecify, name, setValue, value
-
Method Details
-
setValue
void 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>)
-
isValid
Performs basic sanity check of argument.- Specified by:
isValid
in interfaceConnector.Argument
- Returns:
true
if value represents an int that ismin()
<= value <=max()
-
isValid
boolean isValid(int value) Performs basic sanity check of argument. -
stringValueOf
Return the string representation of thevalue
parameter. Does not set or examine the current value ofthis
instance.- Returns:
- the String representation of the int value.
-
intValue
int 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.
-
max
int max()The upper bound for the value.- Returns:
- the maximum allowed value for this argument.
-
min
int min()The lower bound for the value.- Returns:
- the minimum allowed value for this argument.
-