Interface DataSource
-
- All Known Implementing Classes:
AbstractDataSource,EmptyDataSource,ResourceDataSource,SimpleDataSource
@ConsumerType public interface DataSourceDataSource is an abstract collection ofResource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.LonggetGuessTotal()Returns the total count or the total as far as it is known.default java.lang.LonggetLimit()Returns the limit of this datasource.default java.lang.LonggetOffset()Returns the offset of this datasource.java.util.Iterator<Resource>iterator()Returns the data.
-
-
-
Method Detail
-
iterator
@Nonnull java.util.Iterator<Resource> iterator()
Returns the data.- Returns:
- The iterator of the data.
-
getOffset
@CheckForNull default java.lang.Long getOffset()
Returns the offset of this datasource. It returnsnullby default.- Returns:
- The offset of the datasource, or
nullwhen the offset is unknown or not set.
-
getLimit
@CheckForNull default java.lang.Long getLimit()
Returns the limit of this datasource. It returnsnullby default.- Returns:
- The limit of the datasource, or
nullwhen the offset is unknown or not set.
-
getGuessTotal
@CheckForNull default java.lang.Long getGuessTotal()
Returns the total count or the total as far as it is known. It returnsnullby default.- Returns:
- The total count, or
nullif it is not known.
-
-