Show / Hide Table of Contents

    Class CollectionBase<T>

    Base class (abstract) for ICollection implementations.

    Inheritance
    System.Object
    EnumerableBase<T>
    CollectionValueBase<T>
    CollectionBase<T>
    DirectedCollectionBase<T>
    HashSet<T>
    Implements
    ICollectionValue<T>
    System.Collections.Generic.IEnumerable<T>
    IShowable
    IFormattable
    Inherited Members
    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 CollectionBase<T> : CollectionValueBase<T>, ICollectionValue<T>, System.Collections.Generic.IEnumerable<T>, IShowable, IFormattable
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

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

    Declaration
    protected CollectionBase(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

    Fields

    | Improve this Doc View Source

    isReadOnlyBase

    The underlying field of the ReadOnly property

    Declaration
    protected bool isReadOnlyBase
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    itemequalityComparer

    The item equalityComparer of the collection

    Declaration
    protected readonly System.Collections.Generic.IEqualityComparer<T> itemequalityComparer
    Field Value
    Type Description
    System.Collections.Generic.IEqualityComparer<T>
    | Improve this Doc View Source

    size

    The number of items in the collection

    Declaration
    protected int size
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Count

    Declaration
    public override int Count { get; }
    Property Value
    Type Description
    System.Int32

    The size of this collection

    Overrides
    Lucene.Net.Support.C5.CollectionValueBase<T>.Count
    | Improve this Doc View Source

    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).

    Declaration
    public override Speed CountSpeed { get; }
    Property Value
    Type Description
    Speed

    A characterization of the speed of the

    Count
    property in this collection.
    Overrides
    Lucene.Net.Support.C5.CollectionValueBase<T>.CountSpeed
    | Improve this Doc View Source

    EqualityComparer

    Declaration
    public virtual System.Collections.Generic.IEqualityComparer<T> EqualityComparer { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEqualityComparer<T>
    | Improve this Doc View Source

    IsEmpty

    Declaration
    public override bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean

    True if this collection is empty

    Overrides
    Lucene.Net.Support.C5.CollectionValueBase<T>.IsEmpty
    | Improve this Doc View Source

    IsReadOnly

    Declaration
    public virtual bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

    True if this collection is read only

    | Improve this Doc View Source

    stamp

    The current stamp value

    Declaration
    protected int stamp { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    checkRange(Int32, Int32)

    Utility method for range checking.

    Declaration
    protected void checkRange(int start, int count)
    Parameters
    Type Name Description
    System.Int32 start

    start of range

    System.Int32 count

    size of range

    | Improve this Doc View Source

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

    Compute the unsequenced hash code of a collection

    Declaration
    public static int ComputeHashCode(ICollectionValue<T> items, System.Collections.Generic.IEqualityComparer<T> itemequalityComparer)
    Parameters
    Type Name Description
    ICollectionValue<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

    GetUnsequencedHashCode()

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

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

    The hash code

    | Improve this Doc View Source

    modifycheck(Int32)

    Check if the collection has been modified since a specified time, expressed as a stamp value.

    Declaration
    protected virtual void modifycheck(int thestamp)
    Parameters
    Type Name Description
    System.Int32 thestamp

    The stamp identifying the target time

    Exceptions
    Type Condition
    CollectionModifiedException

    if this collection has been updated since a target time

    | Improve this Doc View Source

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

    Examine if collection1 and collection2 are equal as unsequenced collections using the specified item equalityComparer (assumed compatible with the two collections).

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

    The first collection

    ICollection<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

    | Improve this Doc View Source

    UnsequencedEquals(ICollection<T>)

    Check if the contents of otherCollection is equal to the contents of this in the unsequenced sense. Uses the item equality comparer of this collection

    Declaration
    public virtual bool UnsequencedEquals(ICollection<T> otherCollection)
    Parameters
    Type Name Description
    ICollection<T> otherCollection

    The collection to compare to.

    Returns
    Type Description
    System.Boolean

    True if equal

    | Improve this Doc View Source

    updatecheck()

    Check if it is valid to perform update operations, and if so increment stamp.

    Declaration
    protected virtual void updatecheck()
    Exceptions
    Type Condition
    ReadOnlyCollectionException

    If collection is read-only

    Implements

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