Class EmptyDataSource

java.lang.Object
com.adobe.granite.ui.components.ds.EmptyDataSource
All Implemented Interfaces:
DataSource

public final class EmptyDataSource extends Object implements DataSource
A datasource that has no data.
  • Method Details

    • instance

      @Nonnull public static DataSource instance()
      Returns the singleton instance.
      Returns:
      the singleton instance
    • iterator

      @Nonnull public Iterator<Resource> iterator()
      Description copied from interface: DataSource
      Returns the data.
      Specified by:
      iterator in interface DataSource
      Returns:
      The iterator of the data.
    • getGuessTotal

      public Long getGuessTotal()
      Description copied from interface: DataSource
      Returns the total count or the total as far as it is known. It returns null by default.
      Specified by:
      getGuessTotal in interface DataSource
      Returns:
      The total count, or null if it is not known.