Search Results for

    Show / Hide Table of Contents

    Class ObservableCollection<E>

    Defines a List implementation which allows to get notification about adding, removing items from it

    Inheritance
    Object
    java.util.AbstractCollection
    java.util.AbstractList
    ArrayList
    ObservableCollection<E>
    Inherited Members
    Object.finalize()
    Object.getClass()
    Object.notify()
    Object.notifyAll()
    Object.wait()
    Object.wait(long)
    Object.wait(long,int)
    AbstractCollection.containsAll(Collection<?>)
    AbstractCollection.toString()
    ArrayList.<T>toArray(T[])
    ArrayList.add(E)
    ArrayList.add(int,E)
    ArrayList.addAll(int,Collection<? extends E>)
    ArrayList.addAll(Collection<? extends E>)
    ArrayList.addFirst(E)
    ArrayList.addLast(E)
    ArrayList.clear()
    ArrayList.clone()
    ArrayList.contains(Object)
    ArrayList.ensureCapacity(int)
    ArrayList.equals(Object)
    ArrayList.forEach(Consumer<? super E>)
    ArrayList.get(int)
    ArrayList.getFirst()
    ArrayList.getLast()
    ArrayList.hashCode()
    ArrayList.indexOf(Object)
    ArrayList.isEmpty()
    ArrayList.iterator()
    ArrayList.lastIndexOf(Object)
    ArrayList.listIterator()
    ArrayList.listIterator(int)
    ArrayList.remove(int)
    ArrayList.remove(Object)
    ArrayList.removeAll(Collection<?>)
    ArrayList.removeFirst()
    ArrayList.removeIf(Predicate<? super E>)
    ArrayList.removeLast()
    ArrayList.removeRange(int,int)
    ArrayList.replaceAll(UnaryOperator<E>)
    ArrayList.retainAll(Collection<?>)
    ArrayList.set(int,E)
    ArrayList.size()
    ArrayList.sort(Comparator<? super E>)
    ArrayList.spliterator()
    ArrayList.subList(int,int)
    ArrayList.toArray()
    ArrayList.trimToSize()
    Namespace:
    Assembly: .dll
    Syntax
    public class ObservableCollection<E> extends ArrayList<E>
    Type Parameters
    Name Description
    E

    Constructors

    ObservableCollection()

    Creates a new ObservableCollection instance

    Declaration
    public ObservableCollection()

    ObservableCollection(int capacity)

    Creates a new ObservableCollection instance

    Declaration
    public ObservableCollection(int capacity)
    Parameters
    Type Name Description
    int capacity

    The initial capacity

    ObservableCollection(Collection<? extends E> collection)

    Creates a new ObservableCollection instance which contains the elements of the specified collection.

    Declaration
    public ObservableCollection(Collection<? extends E> collection)
    Parameters
    Type Name Description
    Collection<? extends E> collection

    The collection with items to add

    Methods

    add(E object)

    Declaration
    public boolean add(E object)
    Parameters
    Type Name Description
    E object
    Returns
    Type Description
    boolean
    Overrides
    ArrayList.add(E)

    add(int location, E object)

    Declaration
    public void add(int location, E object)
    Parameters
    Type Name Description
    int location
    E object
    Overrides
    ArrayList.add(int,E)

    addAll(int location, Collection<? extends E> collection)

    Declaration
    public boolean addAll(int location, Collection<? extends E> collection)
    Parameters
    Type Name Description
    int location
    Collection<? extends E> collection
    Returns
    Type Description
    boolean
    Overrides
    ArrayList.addAll(int,Collection<? extends E>)

    addAll(Collection<? extends E> collection)

    Declaration
    public boolean addAll(Collection<? extends E> collection)
    Parameters
    Type Name Description
    Collection<? extends E> collection
    Returns
    Type Description
    boolean
    Overrides
    ArrayList.addAll(Collection<? extends E>)

    addObserver(ICollectionObserver<E> observer)

    Adds the ICollectionObserver instance into the list to notify if this collection changes

    Declaration
    public final void addObserver(ICollectionObserver<E> observer)
    Parameters
    Type Name Description
    ICollectionObserver<E> observer

    The observer to add

    clear()

    Declaration
    public void clear()
    Overrides
    ArrayList.clear()

    remove(int location)

    Declaration
    public E remove(int location)
    Parameters
    Type Name Description
    int location
    Returns
    Type Description
    E
    Overrides
    ArrayList.remove(int)

    remove(Object object)

    Declaration
    public boolean remove(Object object)
    Parameters
    Type Name Description
    Object object
    Returns
    Type Description
    boolean
    Overrides
    ArrayList.remove(Object)

    removeAll(Collection<?> collection)

    Declaration
    public boolean removeAll(Collection<?> collection)
    Parameters
    Type Name Description
    Collection<?> collection
    Returns
    Type Description
    boolean
    Overrides
    ArrayList.removeAll(Collection<?>)

    removeObserver(ICollectionObserver<E> observer)

    Removes the ICollectionObserver instance from the list to notify if this collection changes

    Declaration
    public final synchronized void removeObserver(ICollectionObserver<E> observer)
    Parameters
    Type Name Description
    ICollectionObserver<E> observer

    The observer to remove

    removeRange(int fromIndex, int toIndex)

    Declaration
    protected void removeRange(int fromIndex, int toIndex)
    Parameters
    Type Name Description
    int fromIndex
    int toIndex
    Overrides
    ArrayList.removeRange(int,int)

    retainAll(Collection<?> collection)

    Declaration
    public boolean retainAll(Collection<?> collection)
    Parameters
    Type Name Description
    Collection<?> collection
    Returns
    Type Description
    boolean
    Overrides
    ArrayList.retainAll(Collection<?>)

    set(int location, E object)

    Declaration
    public E set(int location, E object)
    Parameters
    Type Name Description
    int location
    E object
    Returns
    Type Description
    E
    Overrides
    ArrayList.set(int,E)

    setAll(Collection<? extends E> collection)

    Clears the ObservableCollection and add all elements from the collection.

    Declaration
    public boolean setAll(Collection<? extends E> collection)
    Parameters
    Type Name Description
    Collection<? extends E> collection

    The collection with items to add

    Returns
    Type Description
    boolean

    True if operation was successful

    setAll(List<? extends E> collection, Predicate<? super E> predicate)

    Clears the ObservableCollection and add all elements from the collection if.

    Declaration
    public boolean setAll(List<? extends E> collection, Predicate<? super E> predicate)
    Parameters
    Type Name Description
    List<? extends E> collection

    The collection with items to add

    Predicate<? super E> predicate

    The predicate to use when adding items from collection ( if true item will be added, otherwise item will be skipped )

    Returns
    Type Description
    boolean

    True if operation was successful

    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml