projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don’t check for Sones but for their IDs.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Sone.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Sone.java
b/src/main/java/net/pterodactylus/sone/data/Sone.java
index
2bb5a3e
..
b14c28f
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Sone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Sone.java
@@
-310,13
+310,13
@@
public class Sone {
/**
* Returns whether this Sone has the given Sone as a friend Sone.
*
/**
* Returns whether this Sone has the given Sone as a friend Sone.
*
- * @param friendSone
- * The
friend
Sone to check for
+ * @param friendSone
Id
+ * The
ID of the
Sone to check for
* @return {@code true} if this Sone has the given Sone as a friend,
* {@code false} otherwise
*/
* @return {@code true} if this Sone has the given Sone as a friend,
* {@code false} otherwise
*/
- public boolean hasFriend(S
one friendSone
) {
- return friendSones.contains(friendSone);
+ public boolean hasFriend(S
tring friendSoneId
) {
+ return friendSones.contains(friendSone
Id
);
}
/**
}
/**
@@
-336,12
+336,12
@@
public class Sone {
/**
* Removes the given Sone as a friend Sone.
*
/**
* Removes the given Sone as a friend Sone.
*
- * @param friendSone
- * The friend Sone to remove
+ * @param friendSone
Id
+ * The
ID of the
friend Sone to remove
* @return This Sone (for method chaining)
*/
* @return This Sone (for method chaining)
*/
- public Sone removeFriend(S
one friendSone
) {
- friendSones.remove(friendSone);
+ public Sone removeFriend(S
tring friendSoneId
) {
+ friendSones.remove(friendSone
Id
);
return this;
}
return this;
}