X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FSone.java;h=2cf8bf6a32d5f9addbe7f0c499bac053e9d10ab6;hb=ae7ed7856de14eb339e77ae86e6d4a8b9284162d;hp=27f2cb13d9251d8696311ebace9d8e3844f35bff;hpb=2524f4d47c56874a263f9e53ec5c4035f2baa7e0;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index 27f2cb1..2cf8bf6 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -259,15 +259,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable { long getTime(); /** - * Sets the time of the last inserted update of this Sone. - * - * @param time - * The time of the update (in milliseconds since Jan 1, 1970 UTC) - * @return This Sone (for method chaining) - */ - Sone setTime(long time); - - /** * Returns the status of this Sone. * * @return The status of this Sone @@ -312,15 +303,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable { Client getClient(); /** - * Sets the client used by this Sone. - * - * @param client - * The client used by this Sone, or {@code null} - * @return This Sone (for method chaining) - */ - Sone setClient(Client client); - - /** * Returns whether this Sone is known. * * @return {@code true} if this Sone is known, {@code false} otherwise @@ -341,7 +323,7 @@ public interface Sone extends Identified, Fingerprintable, Comparable { * * @return The friend Sones of this Sone */ - List getFriends(); + Collection getFriends(); /** * Returns whether this Sone has the given Sone as a friend Sone. @@ -361,32 +343,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable { List getPosts(); /** - * Sets all posts of this Sone at once. - * - * @param posts - * The new (and only) posts of this Sone - * @return This Sone (for method chaining) - */ - Sone setPosts(Collection posts); - - /** - * Adds the given post to this Sone. The post will not be added if its {@link - * Post#getSone() Sone} is not this Sone. - * - * @param post - * The post to add - */ - void addPost(Post post); - - /** - * Removes the given post from this Sone. - * - * @param post - * The post to remove - */ - void removePost(Post post); - - /** * Returns all replies this Sone made. * * @return All replies this Sone made