Package org.apache.commons.net.nntp
Class Threader
java.lang.Object
org.apache.commons.net.nntp.Threader
This is an implementation of a message threading algorithm, as originally devised by Zamie Zawinski.
 See http://www.jwz.org/doc/threading.html for details.
 For his Java implementation, see
 
 https://lxr.mozilla.org/mozilla/source/grendel/sources/grendel/view/Threader.java
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionthread(Iterable<? extends Threadable> messages) The client passes in a list of Iterable objects, and the Threader constructs a connected 'graph' of messagesthread(List<? extends Threadable> messages) The client passes in a list of Threadable objects, and the Threader constructs a connected 'graph' of messagesthread(Threadable[] messages) Deprecated.
- 
Constructor Details- 
Threaderpublic Threader()
 
- 
- 
Method Details- 
threadThe client passes in a list of Iterable objects, and the Threader constructs a connected 'graph' of messages- Parameters:
- messages- iterable of messages to thread, must not be empty
- Returns:
- null if messages == null or root.child == null or messages list is empty
- Since:
- 3.0
 
- 
threadThe client passes in a list of Threadable objects, and the Threader constructs a connected 'graph' of messages- Parameters:
- messages- list of messages to thread, must not be empty
- Returns:
- null if messages == null or root.child == null or messages list is empty
- Since:
- 2.2
 
- 
threadDeprecated.(2.2) preferthread(List)The client passes in an array of Threadable objects, and the Threader constructs a connected 'graph' of messages- Parameters:
- messages- array of messages to thread, must not be empty
- Returns:
- null if messages == null or root.child == null or messages array is empty
 
 
- 
thread(List)