Package org.apache.commons.net.nntp
Interface Threadable<T extends Threadable<T>>
-
- Type Parameters:
T- The Threadable implementation.
- All Known Implementing Classes:
Article
public interface Threadable<T extends Threadable<T>>A placeholder interface for threadable message objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisDummy()Tests whether this is a dummy instance.TmakeDummy()Creates a dummy instance.java.lang.StringmessageThreadId()Gets an ID.java.lang.String[]messageThreadReferences()Gets reference strings.voidsetChild(T child)Sets the child instance.voidsetNext(T next)Sets the next instance.java.lang.StringsimplifiedSubject()Gets the simplified subject.booleansubjectIsReply()Tests whether this is a reply.
-
-
-
Method Detail
-
isDummy
boolean isDummy()
Tests whether this is a dummy instance.- Returns:
- whether this is a dummy instance.
-
makeDummy
T makeDummy()
Creates a dummy instance.- Returns:
- a dummy instance.
-
messageThreadId
java.lang.String messageThreadId()
Gets an ID.- Returns:
- an ID.
-
messageThreadReferences
java.lang.String[] messageThreadReferences()
Gets reference strings.- Returns:
- reference strings.
-
setChild
void setChild(T child)
Sets the child instance.- Parameters:
child- the child instance.
-
setNext
void setNext(T next)
Sets the next instance.- Parameters:
next- the next instance.
-
simplifiedSubject
java.lang.String simplifiedSubject()
Gets the simplified subject.- Returns:
- the simplified subject.
-
subjectIsReply
boolean subjectIsReply()
Tests whether this is a reply.- Returns:
- whether this is a reply.
-
-