- Enclosing class:
- JListHpr
public static class JListHpr.Range
extends Object 
An inner class to describe a selected range (start, end, length).
- 
Constructor SummaryConstructors 
- 
Method Summary
int
 
Returns the end of the range. 
 boolean
 
Returns whether range is equal to another. 
 int
 
Returns the length of the range. 
 int
 
Returns the start of the range. 
 
 
 
 
- 
Constructor Details
- 
Rangepublic Range(int loc,
 int len) Creates a new range. 
 
- 
Method Details
- 
startpublic int start() Returns the start of the range. 
- 
endpublic int end() Returns the end of the range. 
- 
lengthpublic int length() Returns the length of the range. 
- 
equalspublic boolean equals(Object other) Returns whether range is equal to another. 
- Overrides:
- equalsin class- Object