forked from I2P_Developers/i2p.i2p
javadoc
This commit is contained in:
@ -17,6 +17,7 @@ import net.i2p.data.SimpleDataStructure;
|
|||||||
* a local key, using XOR as the distance metric
|
* a local key, using XOR as the distance metric
|
||||||
*
|
*
|
||||||
* Refactored from net.i2p.router.networkdb.kademlia
|
* Refactored from net.i2p.router.networkdb.kademlia
|
||||||
|
* @since 0.9.2
|
||||||
*/
|
*/
|
||||||
public interface KBucket<T extends SimpleDataStructure> {
|
public interface KBucket<T extends SimpleDataStructure> {
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ import net.i2p.util.ConcurrentHashSet;
|
|||||||
* removing entries, this KBucket will exceed the max size.
|
* removing entries, this KBucket will exceed the max size.
|
||||||
*
|
*
|
||||||
* Refactored from net.i2p.router.networkdb.kademlia
|
* Refactored from net.i2p.router.networkdb.kademlia
|
||||||
|
* @since 0.9.2
|
||||||
*/
|
*/
|
||||||
class KBucketImpl<T extends SimpleDataStructure> implements KBucket<T> {
|
class KBucketImpl<T extends SimpleDataStructure> implements KBucket<T> {
|
||||||
/**
|
/**
|
||||||
|
@ -35,6 +35,7 @@ import net.i2p.util.Log;
|
|||||||
* times 2**(B-1) for Kademlia value B.
|
* times 2**(B-1) for Kademlia value B.
|
||||||
*
|
*
|
||||||
* Refactored from net.i2p.router.networkdb.kademlia
|
* Refactored from net.i2p.router.networkdb.kademlia
|
||||||
|
* @since 0.9.2
|
||||||
*/
|
*/
|
||||||
public class KBucketSet<T extends SimpleDataStructure> {
|
public class KBucketSet<T extends SimpleDataStructure> {
|
||||||
private final Log _log;
|
private final Log _log;
|
||||||
|
@ -4,6 +4,7 @@ import net.i2p.data.SimpleDataStructure;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Visit kbuckets, gathering matches
|
* Visit kbuckets, gathering matches
|
||||||
|
* @since 0.9.2
|
||||||
*/
|
*/
|
||||||
public interface SelectionCollector<T extends SimpleDataStructure> {
|
public interface SelectionCollector<T extends SimpleDataStructure> {
|
||||||
public void add(T entry);
|
public void add(T entry);
|
||||||
|
@ -8,6 +8,7 @@ import net.i2p.data.SimpleDataStructure;
|
|||||||
/**
|
/**
|
||||||
* Help sort Hashes in relation to a base key using the XOR metric
|
* Help sort Hashes in relation to a base key using the XOR metric
|
||||||
*
|
*
|
||||||
|
* @since 0.9.2
|
||||||
*/
|
*/
|
||||||
class XORComparator<T extends SimpleDataStructure> implements Comparator<T> {
|
class XORComparator<T extends SimpleDataStructure> implements Comparator<T> {
|
||||||
private final byte[] _base;
|
private final byte[] _base;
|
||||||
|
Reference in New Issue
Block a user