X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FPlainTextPart.java;h=2c29ee244f0f2ea9541129e166838168e1ea439a;hb=efb1006429e52a74f41fb6e1d7736736156bb13a;hp=4870bc493e50c769a79fdfd987e6c9b584b02abc;hpb=ab7fada54ed08b0a8d9ce9c606cbea29c3c3f819;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/text/PlainTextPart.java b/src/main/java/net/pterodactylus/sone/text/PlainTextPart.java index 4870bc4..2c29ee2 100644 --- a/src/main/java/net/pterodactylus/sone/text/PlainTextPart.java +++ b/src/main/java/net/pterodactylus/sone/text/PlainTextPart.java @@ -1,5 +1,5 @@ /* - * Sone - PlainTextPart.java - Copyright © 2011 David Roden + * Sone - PlainTextPart.java - Copyright © 2011–2012 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,29 +17,36 @@ package net.pterodactylus.sone.text; -import java.io.IOException; -import java.io.Writer; -import java.util.Iterator; - -import net.pterodactylus.util.collection.ObjectIterator; - /** - * TODO + * {@link Part} implementation that holds a single piece of text. * * @author David ‘Bombe’ Roden */ public class PlainTextPart implements Part { + /** The text of the part. */ private final String text; + /** + * Creates a new plain-text part. + * + * @param text + * The text of the part + */ public PlainTextPart(String text) { this.text = text; } // - // ACCESSORS + // PART METHODS // + /** + * Returns the text of this part. + * + * @return The text of this part + */ + @Override public String getText() { return text; }