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
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public interface IExtensible<T> : ICollectionValue<T>, IEnumerable<T>, IEnumerable, IShowable, IFormattable
Type Parameters
Name | Description |
---|---|
T |
Properties
| Improve this Doc View SourceAllowsDuplicates
Declaration
bool AllowsDuplicates { get; }
Property Value
Type | Description |
---|---|
System.Boolean | False if this collection has set semantics, true if bag semantics. |
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. |
EqualityComparer
(Here should be a discussion of the role of equalityComparers. Any ).
Declaration
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. |
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 SourceAdd(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. |
AddAll(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(IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items | The items to add |
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. |