Package com.atlassian.jira.index.ha
Class NullAwareIssueIdsIssueIterable
java.lang.Object
com.atlassian.jira.index.ha.NullAwareIssueIdsIssueIterable
- All Implemented Interfaces:
IssuesIterable,EnclosedIterable<Issue>,Sized
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.util.collect.EnclosedIterable
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T> -
Constructor Summary
ConstructorsConstructorDescriptionNullAwareIssueIdsIssueIterable(Iterable<Long> issueIds, IssueManager issueManager) -
Method Summary
-
Constructor Details
-
NullAwareIssueIdsIssueIterable
-
-
Method Details
-
foreach
Description copied from interface:EnclosedIterableApply the sink to all elements in the Collection.- Specified by:
foreachin interfaceEnclosedIterable<Issue>
-
size
public int size()- Specified by:
sizein interfaceEnclosedIterable<Issue>- Specified by:
sizein interfaceSized- Returns:
- the likely size of the objects passed into the sink in
EnclosedIterable.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
public boolean isEmpty()- Specified by:
isEmptyin interfaceEnclosedIterable<Issue>- Specified by:
isEmptyin interfaceSized- Returns:
- true if the there is no data behind it.
-
toString
Description copied from interface:IssuesIterableReturn a user friendly message that identifies which issues this iterable holds. If there is a problem, this method is used to log what issues are affected.For example, if there is a problem locking the Lucene index this method is used to log which issues could not be reindexed.
Hence, it is important to provide a useful implementation for this method.
- Specified by:
toStringin interfaceIssuesIterable- Overrides:
toStringin classObject
-