How to use JEDI TJCLHashMap classes?

2019-05-13 12:03发布

I'm trying to use TJCLHashMap family of classes, but apparently this class has no useful public methods. All methods are "protected". How to use this class? Although JCL comes with some samples, I seem to miss something. A basic example would be great.

2条回答
Ridiculous、
2楼-- · 2019-05-13 12:19

You should use the interfaces declared in JclContainerIntf.pas. The classes in JclHashMaps implement those interfaces.
Take a look at jcl\examples\common\containers\hashing\HashingExample.dpr for a few examples (integer, strings, objects, etc.)

查看更多
SAY GOODBYE
3楼-- · 2019-05-13 12:19

Extend it and add public methods that call the protected methods internally?

查看更多
登录 后发表回答