Constructor
new YearMatcher(start, end)
Create a new year range.
Create a new year range between start and end where null in either means positive or negative
infinity.
Parameters:
| Name | Type | Description |
|---|---|---|
start |
ParsedYear | null | The starting year (inclusive) in this range or null if no min year. |
end |
ParsedYear | null | The ending year (inclusive) in this range or null if no max year. |
- Source:
Methods
getEnd()
Get the end of the year range.
- Source:
Returns:
The maximum included year in this range or null if positive infinity.
getInRange(year)
Determine if a year is included in this range.
Parameters:
| Name | Type | Description |
|---|---|---|
year |
The year to test for inclusion. |
- Source:
Returns:
True if this value is between getStart and getEnd.
getStart()
Get the start of the year range.
- Source:
Returns:
The minimum included year in this range or null if negative infinity.