Hi,
I've just checked out the comparison about Java and C# and found that Java
really does not support using primitive types in the generic types, and only
their wrapper counterparts are supported (for instance, Map<Long, Long>), which
consequently will cause many boxing and unboxing operations. I guess it is the
reason why the wheels are recreated (IntHashtable and LongHashtable).
It is really a pain.
WMJ
>________________________________
> From: Balder VC <li...@redlab.be>
>To: itext-questions@lists.sourceforge.net
>Sent: Wednesday, December 7, 2011 11:24 PM
>Subject: Re: [iText-questions] Support for big PDFs over 2G
>
>
>
>On 07/12/11 10:29, WMJ wrote:
>> Thank you for the reply.
>> I know little about Java.
>> I saw that there are generic types like Dictionary<int,IntHashtable> in
>> iTextSharp and thought that Java has its equivalent for Dictionary<long,
>> long> too. :P
>
>That would be Map<Long,Long>, not with primitive but with wrapper class Long
>but using that could be a pain for conversion from/to the sharp version,
>I don't know enough of that to judge so I don't judge
>
>
>>
>>
>> WMJ
>>
>>
>> ------------------------------------------------------------------------
>> *From:* Paulo Soares <psoa...@glintt.com>
>> *To:* Post all your questions about iText here
>> <itext-questions@lists.sourceforge.net>
>> *Sent:* Wednesday, December 7, 2011 3:49 PM
>> *Subject:* Re: [iText-questions] Support for big PDFs over 2G
>>
>> Unfortunately Java can't have generics on primitive types. Remember
>> that iText must work in Java and .NET and the codebase shuld be as
>> similar as possible.
>
>Indeed, that is the same for the Logger I created a while ago. I would
>have used existing logging interfaces, but it's easier to convert
>from/to the sharp version without using existing logging frameworks
>>
>>
>
>--
>Balder VC
>http://www.redlab.be/blog/
>http://twitter.com/redlabbe
>
>
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php