| Package | Description |
|---|---|
| me.lucko.helper.bucket | |
| me.lucko.helper.bucket.factory | |
| me.lucko.helper.bucket.partitioning |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBucket<E>
An abstract implementation of
Bucket. |
| Modifier and Type | Method and Description |
|---|---|
static <E> Bucket<E> |
BucketFactory.newBucket(int size,
PartitioningStrategy<E> strategy,
Supplier<Set<E>> setSupplier) |
static <E> Bucket<E> |
BucketFactory.newConcurrentBucket(int size,
PartitioningStrategy<E> strategy) |
static <E> Bucket<E> |
BucketFactory.newHashSetBucket(int size,
PartitioningStrategy<E> strategy) |
static <E> Bucket<E> |
BucketFactory.newSynchronizedHashSetBucket(int size,
PartitioningStrategy<E> strategy) |
| Modifier and Type | Method and Description |
|---|---|
int |
GenericPartitioningStrategy.allocate(Bucket<?> bucket)
Calculates the index of the partition to use for any given object.
|
default int |
GenericPartitioningStrategy.allocate(Object object,
Bucket<Object> bucket)
Deprecated.
|
int |
PartitioningStrategy.allocate(T object,
Bucket<T> bucket)
Calculates the index of the partition to use for the object.
|
Copyright © 2022. All rights reserved.