forked from I2P_Developers/i2p.i2p
refactor trimmers to their own files
This commit is contained in:
13
apps/i2psnark/java/src/net/i2p/kademlia/RejectTrimmer.java
Normal file
13
apps/i2psnark/java/src/net/i2p/kademlia/RejectTrimmer.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package net.i2p.kademlia;
|
||||
|
||||
import net.i2p.data.SimpleDataStructure;
|
||||
|
||||
/**
|
||||
* Removes nothing and always rejects the add. Flood resistant..
|
||||
* @since 0.9.2
|
||||
*/
|
||||
public class RejectTrimmer<T extends SimpleDataStructure> implements KBucketTrimmer<T> {
|
||||
public boolean trim(KBucket<T> kbucket, T toAdd) {
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user