Interface BucketPartition<E>

Type Parameters:
E - the element type
All Superinterfaces:
Collection<E>, Iterable<E>, Set<E>

public interface BucketPartition<E> extends Set<E>
Represents a partition of elements within a Bucket.
  • Method Details

    • getPartitionIndex

      int getPartitionIndex()
      Gets the index of this partition within the bucket
      Returns:
      the index
    • add

      @Deprecated default boolean add(E e)
      Deprecated.
      as partitions do not support this method.
      Specified by:
      add in interface Collection<E>
      Specified by:
      add in interface Set<E>
    • addAll

      @Deprecated default boolean addAll(Collection<? extends E> c)
      Deprecated.
      as partitions do not support this method.
      Specified by:
      addAll in interface Collection<E>
      Specified by:
      addAll in interface Set<E>