Class EmptyDataSource

  • All Implemented Interfaces:
    DataSource

    public final class EmptyDataSource
    extends java.lang.Object
    implements DataSource
    A datasource that has no data.
    • 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 interface DataSource
        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 returns null by default.
        Specified by:
        getGuessTotal in interface DataSource
        Returns:
        The total count, or null if it is not known.