How to use JEDI TJCLHashMap classes?

微笑、不失礼 提交于 2019-12-22 10:38:06

问题


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.


回答1:


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.)




回答2:


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



来源:https://stackoverflow.com/questions/247654/how-to-use-jedi-tjclhashmap-classes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!