Interface IIndexedSorted<T>
A collection where items are maintained in sorted order together with their indexes in that order.
Inherited Members
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public interface IIndexedSorted<T> : ISorted<T>, IIndexed<T>, ISequenced<T>, ICollection<T>, IExtensible<T>, System.Collections.Generic.ICollection<T>, IDirectedCollectionValue<T>, ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourceCountFrom(T)
Determine the number of items at or above a supplied threshold.
Declaration
int CountFrom(T bot)
Parameters
Type | Name | Description |
---|---|---|
T | bot | The lower bound (inclusive) |
Returns
Type | Description |
---|---|
System.Int32 | The number of matching items. |
CountFromTo(T, T)
Determine the number of items between two supplied thresholds.
Declaration
int CountFromTo(T bot, T top)
Parameters
Type | Name | Description |
---|---|---|
T | bot | The lower bound (inclusive) |
T | top | The upper bound (exclusive) |
Returns
Type | Description |
---|---|
System.Int32 | The number of matching items. |
CountTo(T)
Determine the number of items below a supplied threshold.
Declaration
int CountTo(T top)
Parameters
Type | Name | Description |
---|---|---|
T | top | The upper bound (exclusive) |
Returns
Type | Description |
---|---|
System.Int32 | The number of matching items. |
FindAll(Func<T, Boolean>)
Create a new indexed sorted collection consisting of the items of this indexed sorted collection satisfying a certain predicate.
Declaration
IIndexedSorted<T> FindAll(Func<T, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<T, System.Boolean> | predicate | The filter delegate defining the predicate. |
Returns
Type | Description |
---|---|
IIndexedSorted<T> | The new indexed sorted collection. |
Map<V>(Func<T, V>, System.Collections.Generic.IComparer<V>)
Create a new indexed sorted collection consisting of the results of
mapping all items of this list.
Declaration
IIndexedSorted<V> Map<V>(Func<T, V> mapper, System.Collections.Generic.IComparer<V> comparer)
Parameters
Type | Name | Description |
---|---|---|
Func<T, V> | mapper | The delegate definging the map. |
System.Collections.Generic.IComparer<V> | comparer | The comparion relation to use for the result. |
Returns
Type | Description |
---|---|
IIndexedSorted<V> | The new sorted collection. |
Type Parameters
Name | Description |
---|---|
V |
RangeFrom(T)
Query this sorted collection for items greater than or equal to a supplied value.
Declaration
IDirectedCollectionValue<T> RangeFrom(T bot)
Parameters
Type | Name | Description |
---|---|---|
T | bot | The lower bound (inclusive). |
Returns
Type | Description |
---|---|
IDirectedCollectionValue<T> | The result directed collection. |
RangeFromTo(T, T)
Query this sorted collection for items between two supplied values.
Declaration
IDirectedCollectionValue<T> RangeFromTo(T bot, T top)
Parameters
Type | Name | Description |
---|---|---|
T | bot | The lower bound (inclusive). |
T | top | The upper bound (exclusive). |
Returns
Type | Description |
---|---|
IDirectedCollectionValue<T> | The result directed collection. |
RangeTo(T)
Query this sorted collection for items less than a supplied value.
Declaration
IDirectedCollectionValue<T> RangeTo(T top)
Parameters
Type | Name | Description |
---|---|---|
T | top | The upper bound (exclusive). |
Returns
Type | Description |
---|---|
IDirectedCollectionValue<T> | The result directed collection. |