T - type of SimpleDataStructure objects in the bucketpublic class RejectTrimmer<T extends SimpleDataStructure> extends Object implements KBucketTrimmer<T>
| Constructor and Description |
|---|
RejectTrimmer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
trim(KBucket<T> kbucket,
T toAdd)
Called from add() just before adding the entry.
|
public boolean trim(KBucket<T> kbucket, T toAdd)
KBucketTrimmertrim in interface KBucketTrimmer<T extends SimpleDataStructure>kbucket - the kbucket that is now too big