Package dev.demeng.pluginbase.bucket
Interface BucketPartition<E>
- Type Parameters:
E- the element type
- All Superinterfaces:
Collection<E>,Iterable<E>,Set<E>
Represents a partition of elements within a
Bucket.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDeprecated.as partitions do not support this method.default booleanaddAll(Collection<? extends E> c) Deprecated.as partitions do not support this method.intGets the index of this partition within the bucketMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
getPartitionIndex
int getPartitionIndex()Gets the index of this partition within the bucket- Returns:
- the index
-
add
Deprecated.as partitions do not support this method. -
addAll
Deprecated.as partitions do not support this method.
-