public class RowIdImpl extends java.lang.Object implements RowId, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
RowIdImpl.Type
type attributes for RowIds which simplify comparisons
|
| Modifier and Type | Field and Description |
|---|---|
private int |
_pageNumber |
private int |
_rowNumber |
private RowIdImpl.Type |
_type |
static int |
FIRST_PAGE_NUMBER
special page number which will sort before any other valid page
number
|
static RowIdImpl |
FIRST_ROW_ID
special rowId which will sort before any other valid rowId
|
static int |
INVALID_ROW_NUMBER
special row number representing an invalid row number
|
static int |
LAST_PAGE_NUMBER
special page number which will sort after any other valid page
number
|
static RowIdImpl |
LAST_ROW_ID
special rowId which will sort after any other valid rowId
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
RowIdImpl(int pageNumber,
int rowNumber)
Creates a new
RowId instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RowId other) |
int |
compareTo(RowIdImpl other) |
boolean |
equals(java.lang.Object o) |
int |
getPageNumber() |
int |
getRowNumber() |
RowIdImpl.Type |
getType() |
int |
hashCode() |
boolean |
isValid()
Returns
true if this rowId potentially represents an actual row
of data, false otherwise. |
java.lang.String |
toString() |
private static final long serialVersionUID
public static final int FIRST_PAGE_NUMBER
public static final int LAST_PAGE_NUMBER
public static final int INVALID_ROW_NUMBER
public static final RowIdImpl FIRST_ROW_ID
public static final RowIdImpl LAST_ROW_ID
private final int _pageNumber
private final int _rowNumber
private final RowIdImpl.Type _type
public RowIdImpl(int pageNumber,
int rowNumber)
RowId instance.public int getPageNumber()
public int getRowNumber()
public boolean isValid()
true if this rowId potentially represents an actual row
of data, false otherwise.public RowIdImpl.Type getType()
public int compareTo(RowId other)
compareTo in interface java.lang.Comparable<RowId>public int compareTo(RowIdImpl other)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object