|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wdssii.webindex.servlet.IndexRecordList
public class IndexRecordList
Transfer object containing a number of IndexRecordBeans corresponding to a source.
Field Summary | |
---|---|
private long |
lastNumber
|
private IndexRecordBean[] |
records
|
static int |
RETURN_ALL_RECORDS
|
static int |
RETURN_LATEST_ONLY
|
private String |
source
|
Constructor Summary | |
---|---|
private |
IndexRecordList(String source,
IndexRecordBean[] indexRecords,
long lastNumber)
the IndexRecords should already be sorted. |
Method Summary | |
---|---|
long |
getLastNumber()
returns -ve if no IndexRecords are here. |
IndexRecordBean[] |
getRecords()
The list can be empty, but it won't be null. |
private IndexRecordBean[] |
getRecordsAfterIndex(int start)
|
String |
getSource()
Name of source |
IndexRecordList |
newInstance(long lastRead)
Returns a cloned copy of this TO, pruned to the number of the last IndexRecord specified. |
static IndexRecordList |
newInstance(String source)
create empty TO |
void |
pruneToMaxSize(long maxSize)
|
void |
setRecords(Collection<IndexRecordBean> c)
|
private void |
updateLast()
set state |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String source
private IndexRecordBean[] records
private long lastNumber
public static final int RETURN_ALL_RECORDS
public static final int RETURN_LATEST_ONLY
Constructor Detail |
---|
private IndexRecordList(String source, IndexRecordBean[] indexRecords, long lastNumber)
Method Detail |
---|
public String getSource()
public IndexRecordBean[] getRecords()
public long getLastNumber()
private void updateLast()
public IndexRecordList newInstance(long lastRead)
private IndexRecordBean[] getRecordsAfterIndex(int start)
public static IndexRecordList newInstance(String source)
public void setRecords(Collection<IndexRecordBean> c)
public void pruneToMaxSize(long maxSize)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |