Show / Hide Table of Contents

    Interface IExtensible<T>

    A generic collection to which one may add items. This is just the intersection of the main stream generic collection interfaces and the priority queue interface, C5.ICollection`1 and C5.IPriorityQueue`1.

    Inherited Members
    ICollectionValue<T>.ListenableEvents
    ICollectionValue<T>.ActiveEvents
    ICollectionValue<T>.CollectionChanged
    ICollectionValue<T>.CollectionCleared
    ICollectionValue<T>.ItemsAdded
    ICollectionValue<T>.ItemInserted
    ICollectionValue<T>.ItemsRemoved
    ICollectionValue<T>.ItemRemovedAt
    ICollectionValue<T>.IsEmpty
    ICollectionValue<T>.Count
    ICollectionValue<T>.CountSpeed
    ICollectionValue<T>.CopyTo(T[], Int32)
    ICollectionValue<T>.ToArray()
    ICollectionValue<T>.Apply(Action<T>)
    ICollectionValue<T>.Exists(Func<T, Boolean>)
    ICollectionValue<T>.Find(Func<T, Boolean>, T)
    ICollectionValue<T>.All(Func<T, Boolean>)
    ICollectionValue<T>.Choose()
    ICollectionValue<T>.Filter(Func<T, Boolean>)
    IShowable.Show(System.Text.StringBuilder, Int32, IFormatProvider)
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public interface IExtensible<T> : ICollectionValue<T>, System.Collections.Generic.IEnumerable<T>, IShowable, IFormattable
    Type Parameters
    Name Description
    T

    Properties

    | Improve this Doc View Source

    AllowsDuplicates

    Declaration
    bool AllowsDuplicates { get; }
    Property Value
    Type Description
    System.Boolean

    False if this collection has set semantics, true if bag semantics.

    | Improve this Doc View Source

    DuplicatesByCounting

    By convention this is true for any collection with set semantics.

    Declaration
    bool DuplicatesByCounting { get; }
    Property Value
    Type Description
    System.Boolean

    True if only one representative of a group of equal items is kept in the collection together with the total count.

    | Improve this Doc View Source

    EqualityComparer

    (Here should be a discussion of the role of equalityComparers. Any ).

    Declaration
    System.Collections.Generic.IEqualityComparer<T> EqualityComparer { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEqualityComparer<T>

    The equalityComparer used by this collection to check equality of items. Or null (????) if collection does not check equality at all or uses a comparer.

    | Improve this Doc View Source

    IsReadOnly

    If true any call of an updating operation will throw an

    ReadOnlyCollectionException
    Declaration
    bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

    True if this collection is read-only.

    Methods

    | Improve this Doc View Source

    Add(T)

    Add an item to this collection if possible. If this collection has set semantics, the item will be added if not already in the collection. If bag semantics, the item will always be added.

    Declaration
    bool Add(T item)
    Parameters
    Type Name Description
    T item

    The item to add.

    Returns
    Type Description
    System.Boolean

    True if item was added.

    | Improve this Doc View Source

    AddAll(System.Collections.Generic.IEnumerable<T>)

    Add the elements from another collection with a more specialized item type to this collection. If this collection has set semantics, only items not already in the collection will be added.

    Declaration
    void AddAll(System.Collections.Generic.IEnumerable<T> items)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> items

    The items to add

    | Improve this Doc View Source

    Check()

    Check the integrity of the internal data structures of this collection. This is only relevant for developers of the library

    Declaration
    bool Check()
    Returns
    Type Description
    System.Boolean

    True if check was passed.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)