X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FPostPart.java;h=22acd438f0da19823829ec1e5ac8948c6738a18c;hp=1e0773d65b21f295a03b17df82762415c889db95;hb=a170ca4a7b77749951028f691ab126cd507a96fa;hpb=a448427ff29e5b39b42a6bdf50da551bf6665e32 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; }