Delphi and java + generic -


in android java file have definition :

/**  * interface builders related sharing.  * @param <p> model protocol built.  * @param <e> concrete builder class.  */ public interface sharemodelbuilder<p extends sharemodel, e extends sharemodelbuilder>         extends sharebuilder<p, e> {     /**      * reads values sharemodel builder.      * @param model source sharemodel      * @return builder.      */     public e readfrom(p model); }  

and java2op translate :

  jsharemodelbuilderclass = interface(jsharebuilderclass)     ['{3c2ecc63-42d7-4c4b-bc0c-003da8d28c14}']   end;    [javasignature('com/facebook/share/model/sharemodelbuilder')]   jsharemodelbuilder = interface(jsharebuilder)     ['{7d4b672e-ed8d-4266-8943-47793346fc9a}']     function readfrom(p1: jsharemodel): jsharemodelbuilder; cdecl;   end;   tjsharemodelbuilder = class(tjavagenericimport<jsharemodelbuilderclass, jsharemodelbuilder>) end; 

is correct? thinking can not access java generic type delphi ?


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -