Show / Hide Table of Contents

    Class SequencedBase<T>

    Base class (abstract) for sequenced collection implementations.

    Inheritance
    System.Object
    EnumerableBase<T>
    CollectionValueBase<T>
    CollectionBase<T>
    DirectedCollectionBase<T>
    SequencedBase<T>
    CircularQueue<T>
    TreeSet<T>
    Implements
    IDirectedCollectionValue<T>
    ICollectionValue<T>
    IShowable
    IFormattable
    IDirectedEnumerable<T>
    System.Collections.Generic.IEnumerable<T>
    Inherited Members
    DirectedCollectionBase<T>.Backwards()
    DirectedCollectionBase<T>.IDirectedEnumerable<T>.Backwards()
    DirectedCollectionBase<T>.FindLast(Func<T, Boolean>, T)
    CollectionBase<T>.isReadOnlyBase
    CollectionBase<T>.stamp
    CollectionBase<T>.size
    CollectionBase<T>.itemequalityComparer
    CollectionBase<T>.checkRange(Int32, Int32)
    CollectionBase<T>.ComputeHashCode(ICollectionValue<T>, System.Collections.Generic.IEqualityComparer<T>)
    CollectionBase<T>.StaticEquals(ICollection<T>, ICollection<T>, System.Collections.Generic.IEqualityComparer<T>)
    CollectionBase<T>.GetUnsequencedHashCode()
    CollectionBase<T>.UnsequencedEquals(ICollection<T>)
    CollectionBase<T>.modifycheck(Int32)
    CollectionBase<T>.updatecheck()
    CollectionBase<T>.IsReadOnly
    CollectionBase<T>.Count
    CollectionBase<T>.CountSpeed
    CollectionBase<T>.EqualityComparer
    CollectionBase<T>.IsEmpty
    CollectionValueBase<T>.ListenableEvents
    CollectionValueBase<T>.ActiveEvents
    CollectionValueBase<T>.CollectionChanged
    CollectionValueBase<T>.raiseCollectionChanged()
    CollectionValueBase<T>.CollectionCleared
    CollectionValueBase<T>.raiseCollectionCleared(Boolean, Int32)
    CollectionValueBase<T>.raiseCollectionCleared(Boolean, Int32, Nullable<Int32>)
    CollectionValueBase<T>.ItemsAdded
    CollectionValueBase<T>.raiseItemsAdded(T, Int32)
    CollectionValueBase<T>.ItemsRemoved
    CollectionValueBase<T>.raiseItemsRemoved(T, Int32)
    CollectionValueBase<T>.ItemInserted
    CollectionValueBase<T>.raiseItemInserted(T, Int32)
    CollectionValueBase<T>.ItemRemovedAt
    CollectionValueBase<T>.raiseItemRemovedAt(T, Int32)
    CollectionValueBase<T>.raiseForSetThis(Int32, T, T)
    CollectionValueBase<T>.raiseForInsert(Int32, T)
    CollectionValueBase<T>.raiseForRemove(T)
    CollectionValueBase<T>.raiseForRemove(T, Int32)
    CollectionValueBase<T>.raiseForRemoveAt(Int32, T)
    CollectionValueBase<T>.raiseForUpdate(T, T)
    CollectionValueBase<T>.raiseForUpdate(T, T, Int32)
    CollectionValueBase<T>.raiseForAdd(T)
    CollectionValueBase<T>.raiseForRemoveAll(ICollectionValue<T>)
    CollectionValueBase<T>.CopyTo(T[], Int32)
    CollectionValueBase<T>.ToArray()
    CollectionValueBase<T>.Apply(Action<T>)
    CollectionValueBase<T>.Exists(Func<T, Boolean>)
    CollectionValueBase<T>.Find(Func<T, Boolean>, T)
    CollectionValueBase<T>.All(Func<T, Boolean>)
    CollectionValueBase<T>.Filter(Func<T, Boolean>)
    CollectionValueBase<T>.Choose()
    CollectionValueBase<T>.Show(System.Text.StringBuilder, Int32, IFormatProvider)
    CollectionValueBase<T>.ToString(String, IFormatProvider)
    CollectionValueBase<T>.ToString()
    EnumerableBase<T>.GetEnumerator()
    EnumerableBase<T>.countItems(System.Collections.Generic.IEnumerable<T>)
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class SequencedBase<T> : DirectedCollectionBase<T>, IDirectedCollectionValue<T>, ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, System.Collections.Generic.IEnumerable<T>
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    SequencedBase(System.Collections.Generic.IEqualityComparer<T>, MemoryType)

    Declaration
    protected SequencedBase(System.Collections.Generic.IEqualityComparer<T> itemequalityComparer, MemoryType memoryType)
    Parameters
    Type Name Description
    System.Collections.Generic.IEqualityComparer<T> itemequalityComparer
    MemoryType memoryType

    The type of memory for the enumerator used to iterate the collection

    Properties

    | Improve this Doc View Source

    Direction

    Forwards
    if same, else
    Backwards
    Declaration
    public override EnumerationDirection Direction { get; }
    Property Value
    Type Description
    EnumerationDirection

    The enumeration direction relative to the original collection.

    Overrides
    Lucene.Net.Support.C5.DirectedCollectionBase<T>.Direction

    Methods

    | Improve this Doc View Source

    ComputeHashCode(ISequenced<T>, System.Collections.Generic.IEqualityComparer<T>)

    Compute the unsequenced hash code of a collection

    Declaration
    public static int ComputeHashCode(ISequenced<T> items, System.Collections.Generic.IEqualityComparer<T> itemequalityComparer)
    Parameters
    Type Name Description
    ISequenced<T> items

    The collection to compute hash code for

    System.Collections.Generic.IEqualityComparer<T> itemequalityComparer

    The item equalitySCG.Comparer

    Returns
    Type Description
    System.Int32

    The hash code

    | Improve this Doc View Source

    FindIndex(Func<T, Boolean>)

    Check if there exists an item that satisfies a specific predicate in this collection and return the index of the first one.

    Declaration
    public int FindIndex(Func<T, bool> predicate)
    Parameters
    Type Name Description
    Func<T, System.Boolean> predicate

    A delegate defining the predicate

    Returns
    Type Description
    System.Int32

    the index, if found, a negative value else

    | Improve this Doc View Source

    FindLastIndex(Func<T, Boolean>)

    Check if there exists an item that satisfies a specific predicate in this collection and return the index of the last one.

    Declaration
    public int FindLastIndex(Func<T, bool> predicate)
    Parameters
    Type Name Description
    Func<T, System.Boolean> predicate

    A delegate defining the predicate

    Returns
    Type Description
    System.Int32

    the index, if found, a negative value else

    | Improve this Doc View Source

    GetSequencedHashCode()

    Get the sequenced collection hash code of this collection: from the cached value if present and up to date, else (re)compute.

    Declaration
    public virtual int GetSequencedHashCode()
    Returns
    Type Description
    System.Int32

    The hash code

    | Improve this Doc View Source

    SequencedEquals(ISequenced<T>)

    Check if the contents of that is equal to the contents of this in the sequenced sense. Using the item equalityComparer of this collection.

    Declaration
    public virtual bool SequencedEquals(ISequenced<T> otherCollection)
    Parameters
    Type Name Description
    ISequenced<T> otherCollection

    The collection to compare to.

    Returns
    Type Description
    System.Boolean

    True if equal

    | Improve this Doc View Source

    StaticEquals(ISequenced<T>, ISequenced<T>, System.Collections.Generic.IEqualityComparer<T>)

    Examine if tit and tat are equal as sequenced collections using the specified item equalityComparer (assumed compatible with the two collections).

    Declaration
    public static bool StaticEquals(ISequenced<T> collection1, ISequenced<T> collection2, System.Collections.Generic.IEqualityComparer<T> itemequalityComparer)
    Parameters
    Type Name Description
    ISequenced<T> collection1

    The first collection

    ISequenced<T> collection2

    The second collection

    System.Collections.Generic.IEqualityComparer<T> itemequalityComparer

    The item equalityComparer to use for comparison

    Returns
    Type Description
    System.Boolean

    True if equal

    Implements

    IDirectedCollectionValue<T>
    ICollectionValue<T>
    IShowable
    IFormattable
    IDirectedEnumerable<T>
    System.Collections.Generic.IEnumerable<>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)