projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'notifications' into next
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
text
/
SonePart.java
diff --git
a/src/main/java/net/pterodactylus/sone/text/SonePart.java
b/src/main/java/net/pterodactylus/sone/text/SonePart.java
index
b460a29
..
5c6a63d
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/text/SonePart.java
+++ b/
src/main/java/net/pterodactylus/sone/text/SonePart.java
@@
-18,21
+18,36
@@
package net.pterodactylus.sone.text;
import net.pterodactylus.sone.data.Sone;
package net.pterodactylus.sone.text;
import net.pterodactylus.sone.data.Sone;
-import net.pterodactylus.sone.template.SoneAccessor;
/**
/**
- *
TODO
+ *
{@link Part} implementation that stores a reference to a {@link Sone}.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class SonePart implements Part {
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class SonePart implements Part {
+ /** The referenced {@link Sone}. */
private final Sone sone;
private final Sone sone;
+ /**
+ * Creates a new Sone part.
+ *
+ * @param sone
+ * The referenced Sone
+ */
public SonePart(Sone sone) {
this.sone = sone;
}
public SonePart(Sone sone) {
this.sone = sone;
}
+ //
+ // ACCESSORS
+ //
+
+ /**
+ * Returns the referenced Sone.
+ *
+ * @return The referenced Sone
+ */
public Sone getSone() {
return sone;
}
public Sone getSone() {
return sone;
}