Author: xor
Date: 2008-10-29 22:44:38 +0000 (Wed, 29 Oct 2008)
New Revision: 23204
Modified:
trunk/plugins/FMSPlugin/FMSMessage.java
Log:
JavaDoc, isThread() function
Modified: trunk/plugins/FMSPlugin/FMSMessage.java
===================================================================
--- trunk/plugins/FMSPlugin/FMSMessage.java 2008-10-29 22:22:27 UTC (rev
23203)
+++ trunk/plugins/FMSPlugin/FMSMessage.java 2008-10-29 22:44:38 UTC (rev
23204)
@@ -101,14 +101,24 @@
return mURI;
}
- public FreenetURI getThreadURI() {
+ /**
+ * Get the FreenetURI of the thread this message belongs to.
+ */
+ public FreenetURI getParentThreadURI() {
return mThreadURI;
}
+ /**
+ * Get the FreenetURI to which this message is a reply. Null if the
message is a thread.
+ */
public FreenetURI getParentURI() {
return mParentURI;
}
+ public boolean isThread() {
+ return getParentURI() == null;
+ }
+
/**
* Get an iterator of the boards to which this message was posted.
* The boards are returned in alphabetical order.