X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FPostPart.java;h=22acd438f0da19823829ec1e5ac8948c6738a18c;hb=c9e306ac8e3ada846e87a0cc256a20fc148f381c;hp=1e0773d65b21f295a03b17df82762415c889db95;hpb=ab7fada54ed08b0a8d9ce9c606cbea29c3c3f819;p=Sone.git 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 --- 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; /** - * TODO + * {@link Part} implementation that stores a reference to a {@link Post}. * * @author David ‘Bombe’ Roden */ public class PostPart implements Part { + /** The post this part refers to. */ private final Post post; + /** + * Creates a new post part. + * + * @param post + * The referenced 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; }