- All Implemented Interfaces:
IRegion
- Direct Known Subclasses:
TypedRegion
The default implementation of the
IRegion
interface.
-
Constructor Summary 
Constructors
Region(int offset,
int length)
-
Method Summary 
boolean
int
Returns the length of the region.
int
Returns the offset of the region.
int
-
Constructor Details 
-
Region 
public Region(int offset,
int length)
Create a new region.
- Parameters:
offset
- the offset of the region
length
- the length of the region
-
Method Details 
-
getLength 
public int getLength()
Description copied from interface: IRegion
Returns the length of the region.
- Specified by:
getLength
in interface IRegion
- Returns:
- the length of the region
-
getOffset 
public int getOffset()
Description copied from interface: IRegion
Returns the offset of the region.
- Specified by:
getOffset
in interface IRegion
- Returns:
- the offset of the region
-
-
-