Interface EnclosedIterable<T>

All Superinterfaces:
Sized
All Known Subinterfaces:
IssuesIterable
All Known Implementing Classes:
CollectionEnclosedIterable, CountingEnclosedIterable, DatabaseIssuesIterable, DatabaseIterable, IssueGVsIssueIterable, IssueIdsIssueIterable, IssueObjectIssuesIterable, NullAwareIssueIdsIssueIterable, PagedDatabaseIterable, SharedEntitySearchResult

@PublicApi public interface EnclosedIterable<T> extends Sized
A limited collection view that may be backed by the something that needs closing, for example a connection to a database.

You can access all elements using the foreach(Consumer) method.

Since:
v3.13
  • Method Details

    • foreach

      void foreach(Consumer<T> sink)
      Apply the sink to all elements in the Collection.
    • size

      int size()
      Specified by:
      size in interface Sized
      Returns:
      the likely size of the objects passed into the sink in foreach(Consumer). Be careful depending on this size being exact, as in many cases its best efforts value or may be unstable due to concurrent changes.
    • isEmpty

      boolean isEmpty()
      Specified by:
      isEmpty in interface Sized
      Returns:
      true if the there is no data behind it.