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.Long
getGuessTotal()
Returns the total count or the total as far as it is known.static DataSource
instance()
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:DataSource
Returns the data.- Specified by:
iterator
in interfaceDataSource
- Returns:
- The iterator of the data.
-
getGuessTotal
public java.lang.Long getGuessTotal()
Description copied from interface:DataSource
Returns the total count or the total as far as it is known. It returnsnull
by default.- Specified by:
getGuessTotal
in interfaceDataSource
- Returns:
- The total count, or
null
if it is not known.
-
-