public class BucketSet extends HashSet<BucketId>
Constructor and Description |
---|
BucketSet()
Constructs a new bucket set that contains no ids.
|
BucketSet(BucketId id)
Constructs a new bucket set that contains a single id.
|
BucketSet(BucketSet set)
Constructs a new bucket set that is a copy of another.
|
Modifier and Type | Method and Description |
---|---|
BucketSet |
intersection(BucketSet rhs)
Returns the intersection between this bucket set and another.
|
BucketSet |
union(BucketSet rhs)
Returns the union between this bucket set and another.
|
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
parallelStream, removeIf, stream
public BucketSet()
public BucketSet(BucketId id)
id
- The id to add to this as initial value.public BucketSet(BucketSet set)
set
- The set to copy.Copyright © 2017. All rights reserved.