com.atlassian.jira.issue.comments.util
Class LuceneCommentIterator
java.lang.Object
com.atlassian.jira.issue.comments.util.LuceneCommentIterator
- All Implemented Interfaces:
- CommentIterator, Iterator<Comment>
@NotThreadSafe
public final class LuceneCommentIterator
- extends Object
- implements CommentIterator
This class iterates across a series of comment hits from the comment index.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneCommentIterator
public LuceneCommentIterator(com.atlassian.crowd.embedded.api.User user,
CommentService commentService,
org.apache.lucene.search.Hits hits)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Comment>
nextComment
public Comment nextComment()
- Specified by:
nextComment
in interface CommentIterator
close
public void close()
- Specified by:
close
in interface CommentIterator
next
public Comment next()
- Specified by:
next
in interface Iterator<Comment>
remove
public void remove()
- Specified by:
remove
in interface Iterator<Comment>
size
public int size()
- Description copied from interface:
CommentIterator
- Returns the total number of comments this iterator contains.
- Specified by:
size
in interface CommentIterator
- Returns:
- the total number of comments this iterator contains.
Copyright © 2002-2011 Atlassian. All Rights Reserved.