Class DefaultCommentIterator
java.lang.Object
com.atlassian.jira.search.issue.comments.util.DefaultCommentIterator
- All Implemented Interfaces:
CommentIterator,Iterator<Comment>
@NotThreadSafe
@Internal
public final class DefaultCommentIterator
extends Object
implements CommentIterator
This class iterates across a series of comment hits from the comment index.
- Since:
- 10.4
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCommentIterator(ApplicationUser user, CommentService commentService, List<Long> commentIds) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DefaultCommentIterator
public DefaultCommentIterator(ApplicationUser user, CommentService commentService, List<Long> commentIds)
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextComment
- Specified by:
nextCommentin interfaceCommentIterator
-
close
public void close()- Specified by:
closein interfaceCommentIterator
-
next
-
remove
public void remove() -
size
public int size()Description copied from interface:CommentIteratorReturns the total number of comments this iterator contains.- Specified by:
sizein interfaceCommentIterator- Returns:
- the total number of comments this iterator contains.
-