public class PagePositionImpl extends Object implements PagePosition
Constructor and Description |
---|
PagePositionImpl() |
PagePositionImpl(long pageNr,
int messageNr) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PagePosition o) |
boolean |
equals(Object obj) |
protected void |
finalize()
I needed a finalize method defined here just as a way to get a hook on the PagingLeakTest through ByteMan
There is a rule for finalizing it where I'm establishing a counter, and that rule won't work without this method defined.
|
int |
getMessageNr() |
long |
getPageNr() |
long |
getRecordID() |
int |
hashCode() |
PagePosition |
nextMessage() |
PagePosition |
nextPage() |
void |
setRecordID(long recordID) |
String |
toString() |
public PagePositionImpl(long pageNr, int messageNr)
pageNr
- messageNr
- public PagePositionImpl()
public long getRecordID()
getRecordID
in interface PagePosition
public void setRecordID(long recordID)
setRecordID
in interface PagePosition
recordID
- the recordID to setpublic long getPageNr()
getPageNr
in interface PagePosition
public int getMessageNr()
getMessageNr
in interface PagePosition
public int compareTo(PagePosition o)
compareTo
in interface Comparable<PagePosition>
public PagePosition nextMessage()
nextMessage
in interface PagePosition
public PagePosition nextPage()
nextPage
in interface PagePosition
protected void finalize()
Copyright © 2017 JBoss by Red Hat. All rights reserved.