public interface ItemScatterPolicy<E extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
int |
selectBucket(int count,
E item)
Returns a bucket index in the range 0 to (count - 1) to which an item should be assigned.
|
int selectBucket(int count,
E item)
count - exclusive maximum indexitem - the item we are scattering across the bucketsCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.