Interface IObservableSet<E>

  • Type Parameters:
    E - the type of the elements in this set
    All Superinterfaces:
    java.util.Collection<E>, IObservable, IObservableCollection<E>, java.lang.Iterable<E>, java.util.Set<E>
    All Known Subinterfaces:
    IViewerObservableSet<E>
    All Known Implementing Classes:
    AbstractObservableSet, ComputedSet, DecoratingObservableSet, ListToSetAdapter, MappedSet, ObservableSet, UnionSet, WritableSet

    public interface IObservableSet<E>
    extends java.util.Set<E>, IObservableCollection<E>
    A set whose changes can be tracked by set change listeners.
    Since:
    1.0
    See Also:
    AbstractObservableSet, ObservableSet
    Restriction:
    This interface is not intended to be implemented by clients. Clients should instead subclass one of the classes that implement this interface.

    Authors of extensions to the databinding framework may extend this interface and indirectly implement it, but if doing so must also extend one of the framework classes. (Use an API problem filter to suppress the resulting warning.)

    Direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.

    • Method Detail

      • addSetChangeListener

        void addSetChangeListener​(ISetChangeListener<? super E> listener)
        Parameters:
        listener - the change listener to add; not null
      • removeSetChangeListener

        void removeSetChangeListener​(ISetChangeListener<? super E> listener)
        Parameters:
        listener - the change listener to remove; not null
      • getElementType

        java.lang.Object getElementType()
        Description copied from interface: IObservableCollection
        Returns the element type of this observable collection, or null if this observable collection is untyped.
        Specified by:
        getElementType in interface IObservableCollection<E>
        Returns:
        the element type or null if untyped
      • size

        int size()
        Specified by:
        size in interface java.util.Collection<E>
        Specified by:
        size in interface java.util.Set<E>
        "TrackedGetter"
      • isEmpty

        boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<E>
        Specified by:
        isEmpty in interface java.util.Set<E>
        "TrackedGetter"
      • contains

        boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<E>
        Specified by:
        contains in interface java.util.Set<E>
        "TrackedGetter"
      • iterator

        java.util.Iterator<E> iterator()
        Specified by:
        iterator in interface java.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>
        Specified by:
        iterator in interface java.util.Set<E>
        "TrackedGetter"
      • toArray

        java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<E>
        Specified by:
        toArray in interface java.util.Set<E>
        "TrackedGetter"
      • toArray

        <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<E>
        Specified by:
        toArray in interface java.util.Set<E>
        "TrackedGetter"
      • add

        boolean add​(E o)
        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface java.util.Set<E>
        "TrackedGetter"
      • remove

        boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<E>
        Specified by:
        remove in interface java.util.Set<E>
        "TrackedGetter"
      • containsAll

        boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<E>
        Specified by:
        containsAll in interface java.util.Set<E>
        "TrackedGetter"
      • addAll

        boolean addAll​(java.util.Collection<? extends E> c)
        Specified by:
        addAll in interface java.util.Collection<E>
        Specified by:
        addAll in interface java.util.Set<E>
        "TrackedGetter"
      • retainAll

        boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<E>
        Specified by:
        retainAll in interface java.util.Set<E>
        "TrackedGetter"
      • removeAll

        boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<E>
        Specified by:
        removeAll in interface java.util.Set<E>
        "TrackedGetter"
      • equals

        boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<E>
        Specified by:
        equals in interface java.util.Set<E>
        Overrides:
        equals in class java.lang.Object
        "TrackedGetter"
      • hashCode

        int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<E>
        Specified by:
        hashCode in interface java.util.Set<E>
        Overrides:
        hashCode in class java.lang.Object
        "TrackedGetter"