Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FilterEnumerator<T>

    An System.Collections.Generic.IEnumerator<T> implementation that filters elements with a boolean predicate.

    Inheritance
    System.Object
    FilterEnumerator<T>
    Implements
    System.Collections.Generic.IEnumerator<T>
    System.Collections.IEnumerator
    System.IDisposable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class FilterEnumerator<T> : IEnumerator<T>, IEnumerator, IDisposable
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    FilterEnumerator(IEnumerator<T>, Predicate<T>)

    Initializes a new instance of FilterEnumerator<T> with the specified baseEnumerator and predicateFunction.

    Declaration
    public FilterEnumerator(IEnumerator<T> baseEnumerator, Predicate<T> predicateFunction)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerator<T> baseEnumerator
    System.Predicate<T> predicateFunction

    Returns true, if this element should be set to Current by MoveNext().

    Properties

    | Improve this Doc View Source

    Current

    Declaration
    public T Current { get; }
    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    MoveNext()

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Reset()

    Declaration
    public void Reset()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerator.Current

    Declaration
    object IEnumerator.Current { get; }
    Returns
    Type Description
    System.Object

    Implements

    System.Collections.Generic.IEnumerator<T>
    System.Collections.IEnumerator
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.