public class Threader extends Object
| Constructor and Description |
|---|
Threader()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Threadable |
thread(Iterable<? extends Threadable> messages)
The client passes in a list of Iterable objects, and the Threader constructs a connected 'graph' of messages
|
Threadable |
thread(List<? extends Threadable> messages)
The client passes in a list of Threadable objects, and the Threader constructs a connected 'graph' of messages
|
public Threadable thread(Iterable<? extends Threadable> messages)
messages - iterable of messages to thread, must not be emptypublic Threadable thread(List<? extends Threadable> messages)
messages - list of messages to thread, must not be empty