projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'release-0.7.2'
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
text
/
PostPart.java
diff --git
a/src/main/java/net/pterodactylus/sone/text/PostPart.java
b/src/main/java/net/pterodactylus/sone/text/PostPart.java
index
1e0773d
..
22acd43
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/text/PostPart.java
+++ b/
src/main/java/net/pterodactylus/sone/text/PostPart.java
@@
-20,18
+20,34
@@
package net.pterodactylus.sone.text;
import net.pterodactylus.sone.data.Post;
/**
import net.pterodactylus.sone.data.Post;
/**
- *
TODO
+ *
{@link Part} implementation that stores a reference to a {@link Post}.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class PostPart implements Part {
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class PostPart implements Part {
+ /** The post this part refers to. */
private final Post post;
private final Post post;
+ /**
+ * Creates a new post part.
+ *
+ * @param post
+ * The referenced post
+ */
public PostPart(Post post) {
this.post = post;
}
public PostPart(Post post) {
this.post = post;
}
+ //
+ // ACCESSORS
+ //
+
+ /**
+ * Returns the post referenced by this part.
+ *
+ * @return The post referenced by this part
+ */
public Post getPost() {
return post;
}
public Post getPost() {
return post;
}