public class ObservableSet<E> extends Object implements Set<E>, ObservableCollection<E>
Constructor and Description |
---|
ObservableSet(Set<E> set,
CollectionObserver<E> observer) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
CollectionObserver<E> |
observer() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public ObservableSet(Set<E> set, CollectionObserver<E> observer)
public CollectionObserver<E> observer()
observer
in interface ObservableCollection<E>
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(@Nonnull Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean addAll(@Nonnull Collection<? extends E> c)
public boolean retainAll(@Nonnull Collection<?> c)
public boolean removeAll(@Nonnull Collection<?> c)