Show / Hide Table of Contents

    Interface IDirectedCollectionValue<T>

    A sized generic collection, that can be enumerated backwards.

    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)
    IDirectedEnumerable<T>.Direction
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public interface IDirectedCollectionValue<T> : ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, System.Collections.Generic.IEnumerable<T>
    Type Parameters
    Name Description
    T

    Methods

    | Improve this Doc View Source

    Backwards()

    Create a collection containing the same items as this collection, but whose enumerator will enumerate the items backwards. The new collection will become invalid if the original is modified. Method typically used as in

    foreach (T x in coll.Backwards()) {...}
    Declaration
    IDirectedCollectionValue<T> Backwards()
    Returns
    Type Description
    IDirectedCollectionValue<T>

    The backwards collection.

    | Improve this Doc View Source

    FindLast(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.

    Declaration
    bool FindLast(Func<T, bool> predicate, out T item)
    Parameters
    Type Name Description
    Func<T, System.Boolean> predicate

    A delegate (Func<, > with

    R == bool
    ) defining the predicate

    T item
    Returns
    Type Description
    System.Boolean

    True is such an item exists

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