refactor trimmers to their own files

This commit is contained in:
zzz
2012-08-29 14:05:02 +00:00
parent d05f1ca2c8
commit d2a7af2884
9 changed files with 99 additions and 69 deletions

View 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;
}
}