public class IlvRowRange extends Object implements Serializable
IlvRowRange
is used to represent a range of rows.
If the first and the last row have the value -1
,
the range is empty.Constructor and Description |
---|
IlvRowRange()
Creates an empty row range.
|
IlvRowRange(int first,
int last)
Creates a row range by specifying the number of the first
and the last row.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int row)
Specifies whether the specified row is in the range.
|
int |
getFirst()
Returns the first row in the range.
|
int |
getLast()
Returns the last row in the range.
|
boolean |
isEmpty()
Specifies whether the range is empty.
|
int |
length()
Returns the number of rows in the range or 0 if the range is empty.
|
void |
setRange(int first,
int last)
Changes the row range.
|
String |
toString()
Returns the row range as a string.
|
public IlvRowRange(int first, int last)
first
- The number of the first row.last
- The number of the last row.public IlvRowRange()
public boolean isEmpty()
first == last == -1
.true
if the range is empty.public boolean contains(int row)
row
- The row.true
if the row is within the range.public int getFirst()
public void setRange(int first, int last)
first
- The first new row.last
- The last new row.public int getLast()
public int length()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.