Interface ICollectionValue<T>
A generic collection that may be enumerated and can answer efficiently how many items it contains. Like
IEnumerable<T>
,
this interface does not prescribe any operations to initialize or update the
collection. The main usage for this interface is to be the return type of
query operations on generic collection.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public interface ICollectionValue<T> : Collections.Generic.IEnumerable<T>, IShowable, IFormattable
Type Parameters
Name | Description |
---|---|
T |
Properties
Name | Description |
---|---|
ActiveEvents | A flag bitmap of the events currently subscribed to by this collection. |
Count | |
CountSpeed | The value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). |
IsEmpty | |
ListenableEvents | A flag bitmap of the events subscribable to by this collection. |
Methods
Name | Description |
---|---|
All(Func<T, Boolean>) | Check if all items in this collection satisfies a specific predicate. |
Apply(Action<T>) | Apply a delegate to all items of this collection. |
Choose() | Choose some item of this collection. Implementations must assure that the item returned may be efficiently removed. Implementors may decide to implement this method in a way such that repeated calls do not necessarily give the same result, i.e. so that the result of the following test is undetermined:
|
CopyTo(T[], Int32) | Copy the items of this collection to a contiguous part of an array. |
Exists(Func<T, Boolean>) | Check if there exists an item that satisfies a specific predicate in this collection. |
Filter(Func<T, Boolean>) | Create an enumerable, enumerating the items of this collection that satisfies a certain condition. |
Find(Func<T, Boolean>, out T) | Check if there exists an item that satisfies a specific predicate in this collection and return the first one in enumeration order. |
ToArray() | Create an array with the items of this collection (in the same order as an enumerator would output them). |
Events
Name | Description |
---|---|
CollectionChanged | The change event. Will be raised for every change operation on the collection. |
CollectionCleared | The change event. Will be raised for every clear operation on the collection. |
ItemInserted | The item inserted event. Will be raised for every individual insertion to the collection. |
ItemRemovedAt | The item removed at event. Will be raised for every individual removal at from the collection. |
ItemsAdded | The item added event. Will be raised for every individual addition to the collection. |
ItemsRemoved | The item removed event. Will be raised for every individual removal from the collection. |