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 Methods |
|
@Nonnull
Iterator<C>
|
iterator()
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
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
()