Skip to content

ListComparer

QuantConnect.Util.ListComparer

Bases: Generic[QuantConnect_Util_ListComparer_T], Object, IEqualityComparer[Sequence[QuantConnect_Util_ListComparer_T]]

An implementation of IEqualityComparer{T} for List{T}. Useful when using a List{T} as the key of a collection.

equals

equals(
    x: Sequence[QuantConnect_Util_ListComparer_T],
    y: Sequence[QuantConnect_Util_ListComparer_T],
) -> bool

Determines whether the specified objects are equal.

Returns:

Type Description
bool

true if the specified objects are equal; otherwise, false.

get_hash_code

get_hash_code(
    obj: Sequence[QuantConnect_Util_ListComparer_T],
) -> int

Returns a hash code for the specified object.

Returns:

Type Description
int

A hash code for the specified object created from combining the hash code of all the elements in the collection.