T - public class EmptyDataProvider<T> extends Object implements IDataProvider<T>
| Constructor and Description |
|---|
EmptyDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
Detaches model after use.
|
static <T> EmptyDataProvider<T> |
getInstance() |
Iterator<T> |
iterator(long first,
long count)
Gets an iterator for the subset of total data
|
IModel<T> |
model(Object object)
Callback used by the consumer of this data provider to wrap objects retrieved from
IDataProvider.iterator(long, long) with a model (usually a detachable one). |
long |
size()
Gets total number of items in the collection represented by the DataProvider
|
public static <T> EmptyDataProvider<T> getInstance()
T - public Iterator<T> iterator(long first, long count)
IDataProvideriterator in interface IDataProvider<T>first - first row of datacount - minimum number of elements to retrieveIDataProvider.iterator(long, long)public long size()
IDataProvidersize in interface IDataProvider<T>IDataProvider.size()public IModel<T> model(Object object)
IDataProviderIDataProvider.iterator(long, long) with a model (usually a detachable one).model in interface IDataProvider<T>object - the object that needs to be wrappedIDataProvider.model(Object)public void detach()
IDetachabledetach in interface IDetachableIDetachable.detach()Copyright © 2006–2021 Apache Software Foundation. All rights reserved.