Class SimpleDataSource
- java.lang.Object
-
- com.adobe.granite.ui.components.ds.AbstractDataSource
-
- com.adobe.granite.ui.components.ds.SimpleDataSource
-
- All Implemented Interfaces:
DataSource
- Direct Known Subclasses:
ResourceDataSource
public class SimpleDataSource extends AbstractDataSource
A datasource that simply takes the passed resource iterator as its data.
-
-
Constructor Summary
Constructors Constructor Description SimpleDataSource(java.util.Iterator<Resource> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getGuessTotal, getLimit, getOffset
-
-
-
-
Constructor Detail
-
SimpleDataSource
public SimpleDataSource(@Nonnull java.util.Iterator<Resource> iterator)
-
-
Method Detail
-
iterator
@Nonnull public java.util.Iterator<Resource> iterator()
Description copied from interface:DataSource
Returns the data.- Specified by:
iterator
in interfaceDataSource
- Overrides:
iterator
in classAbstractDataSource
- Returns:
- The iterator of the data.
-
-