Class AbstractDataSource
- java.lang.Object
-
- com.adobe.granite.ui.components.ds.AbstractDataSource
-
- All Implemented Interfaces:
DataSource
- Direct Known Subclasses:
SimpleDataSource
public abstract class AbstractDataSource extends java.lang.Object implements DataSource
Abstract class that implements theDataSourceinterface. Implementor ofDataSourceis encouraged to extend this class to ensure to always be able to support new methods that might be introduced in theDataSourcein the future. Note that since Java 8, using abstract class to solve the above scenario is no longer relevant. Instead, Java 8's default methods can be used.
-
-
Constructor Summary
Constructors Constructor Description AbstractDataSource()
-
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
-
-
-
-
Method Detail
-
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.
-
-