projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement getDirectedSones() differently, adhere to new post provider interface.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
SoneProvider.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/SoneProvider.java
b/src/main/java/net/pterodactylus/sone/core/SoneProvider.java
index
73edd0b
..
6b479df
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/SoneProvider.java
+++ b/
src/main/java/net/pterodactylus/sone/core/SoneProvider.java
@@
-27,17
+27,12
@@
import net.pterodactylus.sone.data.Sone;
public interface SoneProvider {
/**
public interface SoneProvider {
/**
- * Returns the Sone with the given ID, if it exists. If it does not exist
- * and {@code create} is {@code false}, {@code null} is returned; otherwise,
- * a new Sone with the given ID is created and returned.
+ * Returns the Sone with the given ID, if it exists.
*
* @param soneId
* The ID of the Sone to return
*
* @param soneId
* The ID of the Sone to return
- * @param create
- * {@code true} to create a new Sone if no Sone with the given ID
- * exists, {@code false} to return {@code null} instead
* @return The Sone with the given ID, or {@code null}
*/
* @return The Sone with the given ID, or {@code null}
*/
- public Sone getSone(String soneId
, boolean create
);
+ public Sone getSone(String soneId);
}
}