Class AbstractBucket<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
dev.demeng.pluginbase.bucket.AbstractBucket<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
Bucket<E>, Iterable<E>, Collection<E>, Set<E>

public abstract class AbstractBucket<E> extends AbstractSet<E> implements Bucket<E>
An abstract implementation of Bucket.
  • Field Details

    • strategy

      protected final PartitioningStrategy<E> strategy
      The function used to partition objects
    • size

      protected final int size
      The number of partitions in this bucket
    • content

      protected final Set<E> content
      The content in the bucket
    • partitions

      protected final com.google.common.collect.ImmutableList<Set<E>> partitions
      The partitions in the bucket
    • partitionView

      protected final com.google.common.collect.ImmutableList<BucketPartition<E>> partitionView
      A view of the partitions list - with all contained values wrapped by AbstractBucket<E>.dev.demeng.pluginbase.bucket.AbstractBucket.SetView.
  • Constructor Details

  • Method Details