System.Generics.Collections.TDictionary.Collisions

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Collisions: NativeInt read GetCollisions;

C++

__property System::NativeInt Collisions = {read=GetCollisions, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TDictionary

Description

Number of dictionary's collisions.

Collisions returns the number of existing key values in the dictionary, which have duplicating hash values (excluding the first duplicated key).

The greater number of collisions the lower the dictionary access performance. The main reason for collisions is an improper hash function.

See Also

Code Examples