[Rxtx] NRJavaSerial, a fork of rxtx that fixes the papercuts!

George H george.dma at gmail.com
Sun Mar 27 22:54:06 MDT 2011


On Mon, Mar 28, 2011 at 2:58 AM, Adrian Crum <
adrian.crum at sandglass-software.com> wrote:

> http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html
>
>
>
> On 3/25/2011 1:32 PM, Andre-John Mas wrote:
>
>> On 24-Mar-2011, at 16:26, Adrian Crum wrote:
>>
>>  Using a concrete class in an API is a bad idea. Maybe you should consider
>>> using Collection<>  or Iterator<>  instead of ArrayList.
>>>
>>> -Adrian
>>>
>> Could probably use List<>  too, depending on the use case. One advantage
>> with using Set<>  or List<>  is that they give some sort of
>> indication of the uniqueness of the results.
>>
>> My 5c.
>>
>> Andre
>> _______________________________________________
>> Rxtx mailing list
>> Rxtx at qbang.org
>> http://mailman.qbang.org/mailman/listinfo/rxtx
>>
> _______________________________________________
> Rxtx mailing list
> Rxtx at qbang.org
> http://mailman.qbang.org/mailman/listinfo/rxtx
>


Well when writing a library it's always good convention to only expose
interfaces to the outside and on the inside you can use concrete classes
where you wish, or sometimes not.

I guess some hierarchy design docs would provide the community with enough
info to lend a helping hand. Not talking about anything fancy just some
simple diagrams.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qbang.org/pipermail/rxtx/attachments/20110328/2f4860cd/attachment-0411.htm>


More information about the Rxtx mailing list