Class EmptyDataSource
java.lang.Object
com.adobe.granite.ui.components.ds.EmptyDataSource
- All Implemented Interfaces:
DataSource
A datasource that has no data.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the total count or the total as far as it is known.static DataSourceinstance()Returns the singleton instance.iterator()Returns the data.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adobe.granite.ui.components.ds.DataSource
getLimit, getOffset
-
Method Details
-
instance
Returns the singleton instance.- Returns:
- the singleton instance
-
iterator
Description copied from interface:DataSourceReturns the data.- Specified by:
iteratorin interfaceDataSource- Returns:
- The iterator of the data.
-
getGuessTotal
Description copied from interface:DataSourceReturns the total count or the total as far as it is known. It returnsnullby default.- Specified by:
getGuessTotalin interfaceDataSource- Returns:
- The total count, or
nullif it is not known.
-