Show / Hide Table of Contents

    Class UnsequencedCollectionEqualityComparer<T, W>

    Prototype for an unsequenced equalityComparer for something (T) that implements ICollection[W] This will use ICollection[W] specific implementations of the equalityComparer operations

    Inheritance
    System.Object
    UnsequencedCollectionEqualityComparer<T, W>
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public class UnsequencedCollectionEqualityComparer<T, W> : System.Collections.Generic.IEqualityComparer<T> where T : ICollection<W>
    Type Parameters
    Name Description
    T
    W

    Properties

    | Improve this Doc View Source

    Default

    Declaration
    public static UnsequencedCollectionEqualityComparer<T, W> Default { get; }
    Property Value
    Type Description
    UnsequencedCollectionEqualityComparer<T, W>

    Methods

    | Improve this Doc View Source

    Equals(T, T)

    Check if two collections are equal with respect to this unsequenced equalityComparer

    Declaration
    public bool Equals(T collection1, T collection2)
    Parameters
    Type Name Description
    T collection1

    first collection

    T collection2

    second collection

    Returns
    Type Description
    System.Boolean

    True if equal

    | Improve this Doc View Source

    GetHashCode(T)

    Get the hash code with respect to this unsequenced equalityComparer

    Declaration
    public int GetHashCode(T collection)
    Parameters
    Type Name Description
    T collection

    The collection

    Returns
    Type Description
    System.Int32

    The hash code

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