Class EmptyDataSource
- java.lang.Object
-
- com.adobe.granite.ui.components.ds.EmptyDataSource
-
- All Implemented Interfaces:
DataSource
public final class EmptyDataSource extends java.lang.Object implements DataSource
A datasource that has no data.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetGuessTotal()Returns the total count or the total as far as it is known.static DataSourceinstance()Returns the singleton instance.java.util.Iterator<Resource>iterator()Returns the data.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.granite.ui.components.ds.DataSource
getLimit, getOffset
-
-
-
-
Method Detail
-
instance
@Nonnull public static DataSource instance()
Returns the singleton instance.- Returns:
- the singleton instance
-
iterator
@Nonnull public java.util.Iterator<Resource> iterator()
Description copied from interface:DataSourceReturns the data.- Specified by:
iteratorin interfaceDataSource- Returns:
- The iterator of the data.
-
getGuessTotal
public java.lang.Long 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.
-
-