E - the type of elements in this setpublic class WritableSet<E> extends ObservableSet<E>
IObservableSet.
This class is thread safe. All state accessing methods must be invoked from
the current realm. Methods for adding and removing
listeners may be invoked from any thread.
elementType, wrappedSet| Constructor and Description |
|---|
WritableSet()
Constructs a new empty instance in the default realm with a
null element type. |
WritableSet(java.util.Collection<? extends E> c,
java.lang.Object elementType)
Constructs a new instance in the default realm containing the elements of
the given collection.
|
WritableSet(Realm realm)
Constructs a new empty instance in the given realm and a
null element type. |
WritableSet(Realm realm,
java.util.Collection<? extends E> c,
java.lang.Object elementType)
Constructs a new instance in the default realm with the given element
type, containing the elements of the given collection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E o) |
boolean |
addAll(java.util.Collection<? extends E> c) |
protected void |
addListener(java.lang.Object listenerType,
IObservablesListener listener) |
void |
clear() |
protected java.lang.Object |
clone() |
protected void |
fireEvent(ObservableEvent event) |
protected void |
firstListenerAdded() |
Realm |
getRealm() |
protected boolean |
hasListeners() |
protected void |
lastListenerRemoved() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
protected void |
removeListener(java.lang.Object listenerType,
IObservablesListener listener) |
boolean |
retainAll(java.util.Collection<?> c) |
static <E> WritableSet<E> |
withElementType(java.lang.Object elementType) |
addSetChangeListener, contains, containsAll, dispose, equals, fireChange, fireSetChange, getElementType, getterCalled, hashCode, isEmpty, isStale, iterator, removeSetChangeListener, setStale, setWrappedSet, size, toArray, toArray, toStringaddChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerfinalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerpublic WritableSet()
null element type.public WritableSet(java.util.Collection<? extends E> c, java.lang.Object elementType)
c - elementType - can be nullpublic WritableSet(Realm realm)
null element type.realm - public WritableSet(Realm realm, java.util.Collection<? extends E> c, java.lang.Object elementType)
realm - c - elementType - can be nullpublic boolean add(E o)
add in interface java.util.Collection<E>add in interface java.util.Set<E>add in interface IObservableSet<E>add in class ObservableSet<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>addAll in interface java.util.Set<E>addAll in interface IObservableSet<E>addAll in class ObservableSet<E>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>remove in interface java.util.Set<E>remove in interface IObservableSet<E>remove in class ObservableSet<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.Set<E>removeAll in interface IObservableSet<E>removeAll in class ObservableSet<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.Set<E>retainAll in interface IObservableSet<E>retainAll in class ObservableSet<E>public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.Set<E>clear in class ObservableSet<E>public static <E> WritableSet<E> withElementType(java.lang.Object elementType)
elementType - can be nullprotected void addListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected void removeListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
protected void firstListenerAdded()
protected void lastListenerRemoved()
public Realm getRealm()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.