public class

CommentChain

extends Object
implements Iterable<T>
java.lang.Object
   ↳ com.atlassian.stash.comment.CommentChain<C extends com.atlassian.stash.comment.Comment>

Class Overview

Iterable of comments that allows to iterate through all comments in a comment thread depth-first.

Note: This class supports any subtype C of Comment, under the assumption that all replies are consistently instances of C. Failing that clients may face ClassCastExceptions when iterating through the chain.

Summary

Public Constructors
CommentChain(Iterable<C> rootComments)
Public Methods
@Nonnull Iterator<C> iterator()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public CommentChain (Iterable<C> rootComments)

Parameters
rootComments list of comment thread roots to expand

Public Methods

@Nonnull public Iterator<C> iterator ()