projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store ID as string, don’t force-convert to UUID.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
text
/
PlainTextPart.java
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
(file)
--- 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
*
* 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;
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 <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class PlainTextPart implements Part {
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class PlainTextPart implements Part {
+ /** The text of the part. */
private final String text;
private final String text;
+ /**
+ * Creates a new plain-text part.
+ *
+ * @param text
+ * The text of the part
+ */
public PlainTextPart(String text) {
this.text = text;
}
//
public PlainTextPart(String text) {
this.text = text;
}
//
- //
ACCESSOR
S
+ //
PART METHOD
S
//
//
+ /**
+ * Returns the text of this part.
+ *
+ * @return The text of this part
+ */
+ @Override
public String getText() {
return text;
}
public String getText() {
return text;
}