X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FPlainTextPart.java;h=aa6441b2494f0ca421105fd6d87baba9c64c411c;hb=aadf0893d8d3c791d9bb01db8009bb12f06e49c7;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..aa6441b 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–2013 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; }