X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2Fimpl%2FPostImpl.java;h=2cc0b00583ee3e9da8ad51ca01a7defc6e9f9737;hb=b04f97f923dcae625ee2aaa15491c75864936b82;hp=2269738e0452538ada13d3f60d6806da211230ca;hpb=cd2ec98ba1ec7c66342dbb50ad2876572d953591;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java b/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java index 2269738..2cc0b00 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java @@ -1,5 +1,5 @@ /* - * Sone - PostImpl.java - Copyright © 2010–2012 David Roden + * Sone - PostImpl.java - Copyright © 2010–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 @@ -124,9 +124,12 @@ public class PostImpl implements Post { } /** - * {@inheritDoc} + * Sets the Sone of this post. + * + * @param sone + * The Sone of this post + * @return This post (for method chaining) */ - @Override public PostImpl setSone(Sone sone) { this.sone = sone; return this; @@ -141,9 +144,12 @@ public class PostImpl implements Post { } /** - * {@inheritDoc} + * Sets the recipient of this post. + * + * @param recipient + * The recipient of this post, or {@code null} + * @return This post (for method chaining) */ - @Override public PostImpl setRecipient(Sone recipient) { if (!sone.equals(recipient)) { this.recipient = recipient; @@ -160,9 +166,12 @@ public class PostImpl implements Post { } /** - * {@inheritDoc} + * Sets the time of this post. + * + * @param time + * The time of this post (in milliseconds since Jan 1, 1970 UTC) + * @return This post (for method chaining) */ - @Override public PostImpl setTime(long time) { this.time = time; return this; @@ -177,9 +186,12 @@ public class PostImpl implements Post { } /** - * {@inheritDoc} + * Sets the text of this post. + * + * @param text + * The text of this post + * @return This post (for method chaining) */ - @Override public PostImpl setText(String text) { this.text = text; return this;