| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private long[] | |
| private static final long[] | |
| private SetListenerHelper |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(T
element to be added to this set t)Overrides java. Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public boolean | addAll(Collection<? extends T>
collection containing elements to be added to this set c)Overrides java. Implements java. Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
| public void | addListener(SetChangeListener<? super T>
the listener for listening to the set changes setChangeListener)Implements javafx. Add a listener to this observable set. |
| public void | addListener(InvalidationListener
The listener to register invalidationListener)Implements javafx. Adds an |
| public void | clear()
Overrides java. Implements java. Removes all of the elements from this set (optional operation). |
| public boolean | contains(Object
element whose presence in this set is to be tested o)Overrides java. Implements java. Returns |
| public boolean | containsAll(Collection<?>
collection to be checked for containment in this set c)Overrides java. Implements java. Returns |
| public boolean | equals(Object
object to be compared for equality with this set obj)Overrides java. Implements java. Compares the specified object with this set for equality. |
| private boolean | |
| pack-priv long[] | |
| protected abstract Class | |
| protected abstract int | |
| protected abstract T | |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this set. |
| public boolean | isEmpty()
Overrides java. Implements java. Returns |
| public Iterator | iterator()
Implements abstract java. Implements java. Returns an iterator over the elements in this set. |
| private void | |
| public boolean | remove(Object
object to be removed from this set, if present o)Overrides java. Implements java. Removes the specified element from this set if it is present (optional operation). |
| public boolean | removeAll(Collection<?>
collection containing elements to be removed from this set c)Overrides java. Implements java. Removes from this set all of its elements that are contained in the specified collection (optional operation). |
| public void | removeListener(SetChangeListener<? super T>
a listener to remove setChangeListener)Implements javafx. Tries to removed a listener from this observable set. |
| public void | removeListener(InvalidationListener
The listener to remove invalidationListener)Implements javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the |
| public boolean | retainAll(Collection<?>
collection containing elements to be retained in this set c)Overrides java. Implements java. Retains only the elements in this set that are contained in the specified collection (optional operation). |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this set (its cardinality). |
| bits | back to summary |
|---|---|
| private long[] bits | |
| EMPTY_SET | back to summary |
|---|---|
| private static final long[] EMPTY_SET | |
| listenerHelper | back to summary |
|---|---|
| private SetListenerHelper<T> listenerHelper | |
| BitSet | back to summary |
|---|---|
| protected BitSet() Create an empty set of T | |
| add | back to summary |
|---|---|
| public boolean add(T t) Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends T> c) Overrides java. Implements java. Doc from java. Adds all of the elements in the specified collection to this set if
they're not already present (optional operation). If the specified
collection is also a set, the
| |
| addListener | back to summary |
|---|---|
| public void addListener(SetChangeListener<? super T> setChangeListener) Implements javafx. Doc from javafx. Add a listener to this observable set.
| |
| addListener | back to summary |
|---|---|
| public void addListener(InvalidationListener invalidationListener) Implements javafx. Doc from javafx. Adds an
Note that the same actual
The
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides java. Implements java. Doc from java. Returns | |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(Collection<?> c) Overrides java. Implements java. Doc from java. Returns
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Doc from java. Compares the specified object with this set for equality. Returns
| |
| equalsBitSet | back to summary |
|---|---|
| private boolean equalsBitSet(BitSet<?> other) | |
| getBits | back to summary |
|---|---|
| pack-priv long[] getBits() | |
| getElementType | back to summary |
|---|---|
| protected abstract Class Returns the element type. | |
| getIndex | back to summary |
|---|---|
| protected abstract int getIndex(T t) | |
| getT | back to summary |
|---|---|
| protected abstract T getT(int index) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this set. The hash code of a set is
defined to be the sum of the hash codes of the elements in the set,
where the hash code of a
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). This returned iterator is not fail-fast. | |
| notifyObservers | back to summary |
|---|---|
| private void notifyObservers(T element, boolean removed) | |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element | |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<?> c) Overrides java. Implements java. Doc from java. Removes from this set all of its elements that are contained in the specified collection (optional operation). If the specified collection is also a set, this operation effectively modifies this set so that its value is the asymmetric set difference of the two sets.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(SetChangeListener<? super T> setChangeListener) Implements javafx. Doc from javafx. Tries to removed a listener from this observable set. If the listener is not attached to this list, nothing happens.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(InvalidationListener invalidationListener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(Collection<?> c) Overrides java. Implements java. Doc from java. Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private static final boolean | |
| private static final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | getElementAdded()
Implements abstract javafx. Get the new element. |
| public T | getElementRemoved()
Implements abstract javafx. Get the old element. |
| public boolean | wasAdded()
Implements abstract javafx. If this change is a result of add operation. |
| public boolean | wasRemoved()
Implements abstract javafx. If this change is a result of removal operation. |
| element | back to summary |
|---|---|
| private final T element | |
| ELEMENT_ADDED | back to summary |
|---|---|
| private static final boolean ELEMENT_ADDED | |
| ELEMENT_REMOVED | back to summary |
|---|---|
| private static final boolean ELEMENT_REMOVED | |
| removed | back to summary |
|---|---|
| private final boolean removed | |
| Change | back to summary |
|---|---|
| public Change(T element, boolean removed) | |
| getElementAdded | back to summary |
|---|---|
| public T getElementAdded() Implements abstract javafx. Doc from javafx. Get the new element. Return null if this is a removal.
| |
| getElementRemoved | back to summary |
|---|---|
| public T getElementRemoved() Implements abstract javafx. Doc from javafx. Get the old element. Return null if this is an addition.
| |
| wasAdded | back to summary |
|---|---|
| public boolean wasAdded() Implements abstract javafx. Doc from javafx. If this change is a result of add operation.
| |
| wasRemoved | back to summary |
|---|---|
| public boolean wasRemoved() Implements abstract javafx. Doc from javafx. If this change is a result of removal operation.
| |