projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add type column
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
core
/
Core.java
diff --git
a/src/net/pterodactylus/jsite/core/Core.java
b/src/net/pterodactylus/jsite/core/Core.java
index
f04bb40
..
38e8914
100644
(file)
--- a/
src/net/pterodactylus/jsite/core/Core.java
+++ b/
src/net/pterodactylus/jsite/core/Core.java
@@
-51,10
+51,12
@@
public interface Core {
*
* @param node
* The node to add
*
* @param node
* The node to add
+ * @return <code>true</code> if the node was added, <code>false</code>
+ * if it was not added because it was already known
* @throws UnknownHostException
* if the hostname of the node can not be resolved
*/
* @throws UnknownHostException
* if the hostname of the node can not be resolved
*/
- public
void
addNode(Node node) throws UnknownHostException;
+ public
boolean
addNode(Node node) throws UnknownHostException;
/**
* Removes the given node from the core.
/**
* Removes the given node from the core.