public class RowIdImpl extends Object implements RowId, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RowIdImpl.Type
type attributes for RowIds which simplify comparisons
|
Modifier and Type | Field and Description |
---|---|
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
|
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(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. |
String |
toString() |
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
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 Comparable<RowId>
public int compareTo(RowIdImpl other)
Copyright © 2005–2024 OpenHMS. All rights reserved.