Public Member Functions | |
Clear () | |
Clears this hash map and removes all elements. | |
IZInterface | Clone () |
Clones the instance of this object. | |
Boolean | Equals (const IZInterface Value) |
IZInterface | Get (const IZInterface Key) |
Gets a interface by it's key. | |
Integer | GetCount () |
Gets a number of elements in this hash map. | |
IZCollection | GetKeys () |
Gets a readonly collection of keys. | |
IZCollection | GetValues () |
Gets a readonly collection of values. | |
LongInt | Hash () |
Gets a unique hash for this object. | |
Boolean | InstanceOf (const TGUID IId) |
Checks is this object implements a specified interface. | |
Put (const IZInterface Key, const IZInterface Value) | |
Put a new key/value pair interfaces. | |
Boolean | Remove (IZInterface Key) |
Removes the element from the map by it's key. | |
string | ToString () |
Converts this object into the string representation. | |
TZHashMap () | |
Creates this hash map and assignes main properties. | |
~TZHashMap () | |
Destroys this object and frees the memory. | |
Public Attributes | |
Integer | Count |
IZCollection | Keys |
IZCollection | Values |
Private Member Functions | |
Boolean | Equals (const IZInterface &Value) |
Private Attributes | |
IZCollection | FKeys |
IZCollection | FReadOnlyKeys |
IZCollection | FReadOnlyValues |
IZCollection | FValues |
Definition at line 327 of file ZCollections.pas.
TZHashMap::TZHashMap | ( | ) |
Creates this hash map and assignes main properties.
Definition at line 1308 of file ZCollections.pas.
TZHashMap::~TZHashMap | ( | ) |
TZHashMap::Clear | ( | ) |
IZInterface TZHashMap::Clone | ( | ) |
Clones the instance of this object.
Reimplemented from TZAbstractObject.
Definition at line 1339 of file ZCollections.pas.
Boolean IZObject::Equals | ( | const IZInterface & | Value | ) | [inherited] |
Boolean TZAbstractObject::Equals | ( | const IZInterface | Value | ) | [inherited] |
Reimplemented in TZAnyValue.
IZInterface TZHashMap::Get | ( | const IZInterface | Key | ) |
Gets a interface by it's key.
Key | a key interface. |
nil
otherwise. Definition at line 1364 of file ZCollections.pas.
Integer TZHashMap::GetCount | ( | ) |
Gets a number of elements in this hash map.
Definition at line 1438 of file ZCollections.pas.
IZCollection TZHashMap::GetKeys | ( | ) |
Gets a readonly collection of keys.
Definition at line 1414 of file ZCollections.pas.
IZCollection TZHashMap::GetValues | ( | ) |
Gets a readonly collection of values.
Definition at line 1426 of file ZCollections.pas.
LongInt TZAbstractObject::Hash | ( | ) | [inherited] |
Gets a unique hash for this object.
Reimplemented from IZObject.
Definition at line 462 of file ZClasses.pas.
Boolean TZAbstractObject::InstanceOf | ( | const TGUID | IId | ) | [inherited] |
Checks is this object implements a specified interface.
IId | an interface id. |
True
if this object support the interface. Reimplemented from IZObject.
Definition at line 488 of file ZClasses.pas.
TZHashMap::Put | ( | const IZInterface | Key, | |
const IZInterface | Value | |||
) |
Put a new key/value pair interfaces.
Key | a key interface. | |
Value | a value interface. |
Definition at line 1388 of file ZCollections.pas.
Boolean TZHashMap::Remove | ( | IZInterface | Key | ) |
Removes the element from the map by it's key.
Key | a key of the element. |
true
of the hash map was changed. Definition at line 1451 of file ZCollections.pas.
string TZAbstractObject::ToString | ( | ) | [inherited] |
Converts this object into the string representation.
Reimplemented from IZObject.
Reimplemented in TZCollection, TZUnmodifiableCollection, TZStack, and TZAnyValue.
Definition at line 501 of file ZClasses.pas.
Integer TZHashMap::Count |
IZCollection TZHashMap::FKeys [private] |
Definition at line 332 of file ZCollections.pas.
IZCollection TZHashMap::FReadOnlyKeys [private] |
Definition at line 334 of file ZCollections.pas.
IZCollection TZHashMap::FReadOnlyValues [private] |
Definition at line 338 of file ZCollections.pas.
IZCollection TZHashMap::FValues [private] |
Definition at line 336 of file ZCollections.pas.