Package com.atlassian.jira.util.collect
Interface EnclosedIterable<T>
- All Superinterfaces:
Sized
- All Known Subinterfaces:
IssuesIterable
- All Known Implementing Classes:
CollectionEnclosedIterable,CountingEnclosedIterable,DatabaseIssuesIterable,DatabaseIterable,IssueGVsIssueIterable,IssueIdsIssueIterable,IssueObjectIssuesIterable,NullAwareIssueIdsIssueIterable,PagedDatabaseIterable,SharedEntitySearchResult
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classUtility class for transforming aEnclosedIterableinto aList. -
Method Summary
-
Method Details
-
foreach
Apply the sink to all elements in the Collection. -
size
int size()- Specified by:
sizein interfaceSized- 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()
-