|
|
@ -90,8 +90,8 @@ public class PeerTable { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Attempts to add the provided peer to the peer table, and returns a struct signalling one of |
|
|
|
* Attempts to add the provided peer to the peer table, and returns an {@link AddResult} |
|
|
|
* three outcomes. |
|
|
|
* signalling one of three outcomes. |
|
|
|
* |
|
|
|
* |
|
|
|
* <h3>Possible outcomes:</h3> |
|
|
|
* <h3>Possible outcomes:</h3> |
|
|
|
* |
|
|
|
* |
|
|
@ -235,7 +235,7 @@ public class PeerTable { |
|
|
|
return distance; |
|
|
|
return distance; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** A struct that encapsulates the result of a peer addition to the table. */ |
|
|
|
/** A class that encapsulates the result of a peer addition to the table. */ |
|
|
|
public static class AddResult { |
|
|
|
public static class AddResult { |
|
|
|
/** The outcome of the operation. */ |
|
|
|
/** The outcome of the operation. */ |
|
|
|
public enum Outcome { |
|
|
|
public enum Outcome { |
|
|
|