public class ElementSubSet<E extends Element> extends Object implements Set<E>
SplittableElementSet
that are in the same partition.
This set is considered as immutable.
Modifier and Type | Class and Description |
---|---|
static class |
ElementSubSet.IndexEntryIterator<E>
The iterator associated to an
ElementSubSet . |
Constructor and Description |
---|
ElementSubSet(SplittableElementSet<E> parent,
int key,
int lb,
int ub)
Make a new subset.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public ElementSubSet(SplittableElementSet<E> parent, int key, int lb, int ub)
parent
- the splittable parent setkey
- the current partition identifierlb
- the lower bound in the backend array where elements start to have the given keyub
- the upper bound in the backend array where elements ends to have the given key (exclusive)public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public boolean add(E o)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E extends Element>
containsAll
in interface Set<E extends Element>
public boolean addAll(Collection c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
Copyright © 2015 University of Nice-Sophia Antipolis. All Rights Reserved.