T
- row/item model object typepublic static interface IDataSource.IQueryResult<T>
IDataSource.query(IDataSource.IQuery, IDataSource.IQueryResult)
method.Modifier and Type | Field and Description |
---|---|
static int |
MORE_ITEMS
Constant indicating that there are more items left.
|
static int |
NO_MORE_ITEMS
Constant indicating that there are no more items left.
|
Modifier and Type | Method and Description |
---|---|
void |
setItems(Iterator<? extends T> items)
Sets the actual loaded items.
|
void |
setTotalCount(long count)
Sets the total items count.
|
static final int MORE_ITEMS
static final int NO_MORE_ITEMS
void setTotalCount(long count)
MORE_ITEMS
or NO_MORE_ITEMS
constant can be used to indicate
whether there are more items left or not.
If the real items count is specified, it might affect the result of
IDataSource.IQuery.getCount()
, so it is preferred to call this method before calling
setItems(Iterator)
.count
- the total count of itemsCopyright © 2015. All rights reserved.