public final class LineRange
extends java.lang.Object
| Constructor and Description |
|---|
LineRange(int first,
int last)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
first()
Get the alpha line number.
|
int |
last()
Get the omega line number.
|
boolean |
within(int line)
Is the given line number within range.
|
boolean |
within(LineRange range)
Is the given range entirely within the LineRange.
|
public LineRange(int first,
int last)
first - The alpha line number.last - The omega line number.public boolean within(int line)
line - The given line number to check.public boolean within(LineRange range)
range - The given LineRange to check.public int first()
public int last()
Copyright © 2011–2019 Qulice.com. All rights reserved.