|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
vitro.util.ObservableSet<E>
public class ObservableSet<E>
An ObservableCollection implementing the Set interface by way of extending AbstractSet and wrapping an internal Set.
Constructor Summary | |
---|---|
ObservableSet()
Create a new, empty Set. |
|
ObservableSet(Collection<? extends E> c)
Create a new Set with the same elements as another Collection. |
|
ObservableSet(Collection<? extends E> c,
ObservableCollection host)
Create a new Set with the same elements as another Collection. |
Method Summary | |
---|---|
boolean |
add(E o)
|
void |
addObserver(CollectionObserver<E> o)
Register a CollectionObserver with this Collection. |
Iterator<E> |
iterator()
|
int |
size()
|
Set<E> |
store()
Obtain a reference to the backing store used by this Set. |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray |
Constructor Detail |
---|
public ObservableSet()
public ObservableSet(Collection<? extends E> c)
c
- the source Collection.public ObservableSet(Collection<? extends E> c, ObservableCollection host)
c
- the source Collection.host
- the host ObservableCollectionMethod Detail |
---|
public void addObserver(CollectionObserver<E> o)
ObservableCollection
addObserver
in interface ObservableCollection<E>
o
- the CollectionObserver to register.public Set<E> store()
public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractCollection<E>
public Iterator<E> iterator()
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in interface Set<E>
iterator
in class AbstractCollection<E>
public boolean add(E o)
add
in interface Collection<E>
add
in interface Set<E>
add
in class AbstractCollection<E>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |