public final class ImmutablePartitionIdSet extends PartitionIdSet
PartitionIdSet.| Constructor and Description |
|---|
ImmutablePartitionIdSet(int partitionCount,
Collection<Integer> initialPartitionIds) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int partitionId) |
boolean |
add(Integer partitionId) |
void |
addAll(PartitionIdSet other) |
void |
clear() |
void |
complement()
Mutates this set so it contains its complement with respect to the universe of all partition IDs.
|
boolean |
remove(int partitionId) |
boolean |
remove(Object o) |
void |
removeAll(PartitionIdSet other) |
void |
union(PartitionIdSet other)
Mutates this
PartitionIdSet so it contains the union of this and other's
partition IDs. |
contains, contains, containsAll, getPartitionCount, intersects, intIterator, isEmpty, isMissingPartitions, iterator, sizeequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic ImmutablePartitionIdSet(int partitionCount,
Collection<Integer> initialPartitionIds)
public boolean add(Integer partitionId)
add in interface Collection<Integer>add in interface Set<Integer>add in class PartitionIdSetpublic boolean add(int partitionId)
add in class PartitionIdSetpublic void addAll(PartitionIdSet other)
addAll in class PartitionIdSetpublic boolean remove(Object o)
remove in interface Collection<Integer>remove in interface Set<Integer>remove in class PartitionIdSetpublic boolean remove(int partitionId)
remove in class PartitionIdSetpublic void clear()
clear in interface Collection<Integer>clear in interface Set<Integer>clear in class PartitionIdSetpublic void union(PartitionIdSet other)
PartitionIdSetPartitionIdSet so it contains the union of this and other's
partition IDs.union in class PartitionIdSetpublic void removeAll(PartitionIdSet other)
removeAll in class PartitionIdSetpublic void complement()
PartitionIdSetcomplement in class PartitionIdSetCopyright © 2019 Hazelcast, Inc.. All rights reserved.