public class IssueObjectIssuesIterable extends Object implements IssuesIterable
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T>
Constructor and Description |
---|
IssueObjectIssuesIterable(Collection<? extends Issue> issueObjects) |
Modifier and Type | Method and Description |
---|---|
void |
foreach(Consumer<Issue> sink)
Apply the sink to all elements in the Collection.
|
boolean |
isEmpty() |
int |
size() |
String |
toString()
Return a user friendly message that identifies which issues this iterable holds.
|
protected Issue |
transform(Object o) |
public IssueObjectIssuesIterable(Collection<? extends Issue> issueObjects)
public final void foreach(Consumer<Issue> sink)
EnclosedIterable
foreach
in interface EnclosedIterable<Issue>
public int size()
size
in interface EnclosedIterable<Issue>
size
in interface Sized
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.public boolean isEmpty()
isEmpty
in interface EnclosedIterable<Issue>
isEmpty
in interface Sized
public String toString()
IssuesIterable
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.
toString
in interface IssuesIterable
toString
in class Object
Copyright © 2002-2024 Atlassian. All Rights Reserved.