Region Class Reference
List of all members.
Constructor & Destructor Documentation
| Region::Region |
( |
int |
s, |
|
|
int |
e | |
|
) |
| | [inline] |
constructor, create a region from s (start) and e (end).
References end, and start.
Referenced by main().
Member Function Documentation
| int Region::direction |
( |
|
) |
[inline] |
return the directionality of the region.
- Returns:
- end-start as an integer.
References end, and start.
| boolean Region::backward |
( |
|
) |
[inline] |
| boolean Region::forward |
( |
|
) |
[inline] |
| String Region::toString |
( |
|
) |
[inline] |
| int Region::getSmallEnd |
( |
|
) |
[inline] |
return the smaller end regardless of direction.
References end, and start.
| int Region::getLargeEnd |
( |
|
) |
[inline] |
| int Region::getEnd |
( |
|
) |
[inline] |
| int Region::distance |
( |
Region |
r |
) |
[inline] |
| int Region::compareEnd |
( |
Region |
r |
) |
[inline] |
| boolean Region::differentEnd |
( |
Region |
r |
) |
[inline] |
| boolean Region::sameEnd |
( |
Region |
r |
) |
[inline] |
| boolean Region::equals |
( |
Region |
r |
) |
[inline] |
return true if this region and r have the same start and end.
References end, and start.
| int Region::hashCode |
( |
|
) |
[inline] |
| int Region::compareTo |
( |
Object |
r |
) |
[inline] |
| int Region::directionalOverlap |
( |
Region |
r |
) |
[inline] |
return the extent of overlap between this Region and r. In case you want to know the extent of the overlap, this method is very useful.
- Returns:
- if overlap returns a positive number. a negative number indicates no overlap.
References end, and start.
| int Region::overlap |
( |
Region |
r |
) |
[inline] |
return the overlap length.
- Returns:
- a negative value indicates no overlap; a positive value indicates a overlap.
References end, and start.
Referenced by ExtractEnd::extract(), and main().
| static void Region::main |
( |
String[] |
args |
) |
[inline, static] |
Member Data Documentation
Referenced by backward(), compareTo(), direction(), directionalOverlap(), distance(), equals(), forward(), getLargeEnd(), getSmallEnd(), hashCode(), overlap(), Region(), and toString().
Referenced by backward(), compareEnd(), compareTo(), differentEnd(), direction(), directionalOverlap(), distance(), equals(), forward(), getEnd(), getLargeEnd(), getSmallEnd(), hashCode(), overlap(), Region(), sameEnd(), and toString().
The documentation for this class was generated from the following file: