Search Results for

    Show / Hide Table of Contents

    Class ProjectionCollection<T,TSource>

    Defines special read-only collection which projects items of one collection into another collection according to specified transform function

    Inheritance
    Object
    java.util.AbstractCollection
    java.util.AbstractList
    ArrayList
    ObservableCollection
    ProjectionCollection<T,TSource>
    Implements
    com.scichart.core.observable.ICollectionObserver<TSource>
    Inherited Members
    ObservableCollection.add(E)
    ObservableCollection.add(int,E)
    ObservableCollection.addAll(int,Collection<? extends E>)
    ObservableCollection.addAll(Collection<? extends E>)
    ObservableCollection.addObserver(ICollectionObserver<E>)
    ObservableCollection.clear()
    ObservableCollection.remove(int)
    ObservableCollection.remove(Object)
    ObservableCollection.removeAll(Collection<?>)
    ObservableCollection.removeObserver(ICollectionObserver<E>)
    ObservableCollection.removeRange(int,int)
    ObservableCollection.retainAll(Collection<?>)
    ObservableCollection.set(int,E)
    ObservableCollection.setAll(Collection<? extends E>)
    ObservableCollection.setAll(List<? extends E>,Predicate<? super E>)
    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.addFirst(E)
    ArrayList.addLast(E)
    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.removeFirst()
    ArrayList.removeIf(Predicate<? super E>)
    ArrayList.removeLast()
    ArrayList.replaceAll(UnaryOperator<E>)
    ArrayList.size()
    ArrayList.sort(Comparator<? super E>)
    ArrayList.spliterator()
    ArrayList.subList(int,int)
    ArrayList.toArray()
    ArrayList.trimToSize()
    Namespace:
    Assembly: .dll
    Syntax
    public final class ProjectionCollection<T,TSource> extends ObservableCollection<T> implements ICollectionObserver<TSource>
    Type Parameters
    Name Description
    T
    TSource

    Constructors

    ProjectionCollection(Func1<TSource,T> projectionFunc)

    Creates a new ProjectionCollection instance with specified projection function

    Declaration
    public ProjectionCollection(Func1<TSource,T> projectionFunc)
    Parameters
    Type Name Description
    Func1<TSource,T> projectionFunc

    The function which transforms item from source collection to target item

    ProjectionCollection(ObservableCollection<TSource> sourceCollection, Func1<TSource,T> projectionFunc)

    Creates a new ProjectionCollection instance with specified projection function

    Declaration
    public ProjectionCollection(ObservableCollection<TSource> sourceCollection, Func1<TSource,T> projectionFunc)
    Parameters
    Type Name Description
    ObservableCollection<TSource> sourceCollection

    The source collection to project from

    Func1<TSource,T> projectionFunc

    The function which transforms item from source collection to target item

    Methods

    add(T object)

    Declaration
    public boolean add(T object)
    Parameters
    Type Name Description
    T object
    Returns
    Type Description
    boolean
    Overrides
    ObservableCollection<E>.add(E object)

    add(int location, T object)

    Declaration
    public void add(int location, T object)
    Parameters
    Type Name Description
    int location
    T object
    Overrides
    ObservableCollection<E>.add(int location, E object)

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

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

    addAll(Collection<? extends T> collection)

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

    clear()

    Declaration
    public void clear()
    Overrides
    ObservableCollection<E>.clear()

    getSourceCollection()

    Gets the source collection to project from

    Declaration
    public final ObservableCollection<TSource> getSourceCollection()
    Returns
    Type Description
    ObservableCollection<TSource>

    The source collection

    onCollectionChanged(ObservableCollection<TSource> collection, CollectionChangedEventArgs<TSource> args)

    Declaration
    public void onCollectionChanged(ObservableCollection<TSource> collection, CollectionChangedEventArgs<TSource> args)
    Parameters
    Type Name Description
    ObservableCollection<TSource> collection
    CollectionChangedEventArgs<TSource> args
    Exceptions
    Type Condition
    Exception

    remove(int location)

    Declaration
    public T remove(int location)
    Parameters
    Type Name Description
    int location
    Returns
    Type Description
    T
    Overrides
    ObservableCollection<E>.remove(int location)

    remove(Object object)

    Declaration
    public boolean remove(Object object)
    Parameters
    Type Name Description
    Object object
    Returns
    Type Description
    boolean
    Overrides
    ObservableCollection<E>.remove(Object object)

    removeAll(Collection<?> collection)

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

    removeRange(int fromIndex, int toIndex)

    Declaration
    protected void removeRange(int fromIndex, int toIndex)
    Parameters
    Type Name Description
    int fromIndex
    int toIndex
    Overrides
    ObservableCollection<E>.removeRange(int fromIndex, int toIndex)

    retainAll(Collection<?> collection)

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

    set(int location, T object)

    Declaration
    public T set(int location, T object)
    Parameters
    Type Name Description
    int location
    T object
    Returns
    Type Description
    T
    Overrides
    ObservableCollection<E>.set(int location, E object)

    setAll(Collection<? extends T> collection)

    Clears the ObservableCollection and add all elements from the collection.

    Declaration
    public boolean setAll(Collection<? extends T> collection)
    Parameters
    Type Name Description
    Collection<? extends T> collection
    Returns
    Type Description
    boolean
    Overrides
    ObservableCollection<E>.setAll(Collection<? extends E> collection)

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

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

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

    setSourceCollection(ObservableCollection<TSource> sourceCollection)

    Sets the source collection to project from

    Declaration
    public final void setSourceCollection(ObservableCollection<TSource> sourceCollection)
    Parameters
    Type Name Description
    ObservableCollection<TSource> sourceCollection

    The new source collection

    Implements

    com.scichart.core.observable.ICollectionObserver<TSource>
    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml