Package com.inmethod.grid
Interface IDataSource.IQueryResult<T>
-
- Type Parameters:
T- row/item model object type
- Enclosing interface:
- IDataSource<T>
public static interface IDataSource.IQueryResult<T>Used to pass the total row count and the loaded item to the caller ofIDataSource.query(IDataSource.IQuery, IDataSource.IQueryResult)method.- Author:
- Matej Knopp
-
-
Field Summary
Fields Modifier and Type Field Description static intMORE_ITEMSConstant indicating that there are more items left.static intNO_MORE_ITEMSConstant indicating that there are no more items left.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetItems(Iterator<? extends T> items)Sets the actual loaded items.voidsetTotalCount(long count)Sets the total items count.
-
-
-
Field Detail
-
MORE_ITEMS
static final int MORE_ITEMS
Constant indicating that there are more items left.- See Also:
- Constant Field Values
-
NO_MORE_ITEMS
static final int NO_MORE_ITEMS
Constant indicating that there are no more items left.- See Also:
- Constant Field Values
-
-
Method Detail
-
setTotalCount
void setTotalCount(long count)
Sets the total items count. Alternatively, if the total item count can't be determined, eitherMORE_ITEMSorNO_MORE_ITEMSconstant 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 ofIDataSource.IQuery.getCount(), so it is preferred to call this method before callingsetItems(Iterator).- Parameters:
count- the total count of items
-
-