API:System.Generics.Defaults.TCustomComparer.GetHashCode

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetHashCode(const Value: T): Integer;

C++

HIDESBASE virtual int __fastcall GetHashCode(const T Value) = 0 /* overload */;

プロパティ

種類 可視性 ソース ユニット
function protected
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults TCustomComparer

説明

ハッシュ コードを表す整数を返します。

System.Generics.Defaults.TCustomComparer.GetHashCode は System.TObject.GetHashCode を継承しています。以下の内容はすべて System.TObject.GetHashCode を参照しています。

ハッシュ コードを表す整数を返します。

デフォルトでは、オブジェクトに対して GetHashCode を呼び出すと、そのオブジェクトが格納されている仮想アドレスを表す整数が返されます。

メモ:  GetHashCode は、ユーザー定義の派生クラスでオーバーライドするためのもので、ユーザー定義オブジェクトの整数ハッシュ コード表現を定義するのに使用されます。

関連項目