Extension SDK 10.1.2

oracle.javatools.editor.language
Class NumberRange

java.lang.Object
  extended byoracle.javatools.editor.language.NumberRange

public final class NumberRange
extends java.lang.Object

A NumberRange is just a wrapper for a starting and ending number so that we can return two numbers from a calculation. For example, this may represent a start/end offset or start/end line.


Field Summary
 int end
          The ending number of the range.
 int start
          The starting number of the range.
 
Constructor Summary
NumberRange(int start, int end)
          Constructs a new NumberRange.
 
Method Summary
 java.lang.String toString()
          Fetches a human-readable version of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public int start
The starting number of the range.


end

public int end
The ending number of the range.

Constructor Detail

NumberRange

public NumberRange(int start,
                   int end)
Constructs a new NumberRange.

Parameters:
start - starting number
end - ending number
Method Detail

toString

public java.lang.String toString()
Fetches a human-readable version of this object.

Returns:
a human readable String for debugging

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.