public static interface

Connector.IntegerArgument

implements Connector.Argument
com.sun.jdi.connect.Connector.IntegerArgument

Class Overview

Specification for and value of a Connector argument, whose value is an integer. Integer values are represented by their corresponding strings.

Summary

Public Methods
abstract int intValue()
Return the value of the argument as a int.
abstract boolean isValid(int value)
Performs basic sanity check of argument.
abstract boolean isValid(String value)
Performs basic sanity check of argument.
abstract int max()
The upper bound for the value.
abstract int min()
The lower bound for the value.
abstract void setValue(int value)
Sets the value of the argument.
abstract String stringValueOf(int value)
Return the string representation of the value parameter.
[Expand]
Inherited Methods
From interface com.sun.jdi.connect.Connector.Argument

Public Methods

public abstract int intValue ()

Return the value of the argument as a int. Since the argument may not have been set or may have an invalid value isValid(String) should be called on 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.

public abstract boolean isValid (int value)

Performs basic sanity check of argument.

Returns

public abstract boolean isValid (String value)

Performs basic sanity check of argument.

Returns
  • true if value represents an int that is min() <= value <= max()

public abstract int max ()

The upper bound for the value.

Returns
  • the maximum allowed value for this argument.

public abstract int min ()

The lower bound for the value.

Returns
  • the minimum allowed value for this argument.

public abstract void setValue (int value)

Sets the value of the argument. The value should be checked with isValid(int) before setting it; invalid values will throw an exception when the connection is established - for example, on launch(Map)

public abstract String stringValueOf (int value)

Return the string representation of the value parameter. Does not set or examine the current value of this instance.

Returns
  • the String representation of the int value.