[Rxtx] NRJavaSerial, a fork of rxtx that fixes the papercuts!
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:
> 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.
>> 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.
>> Rxtx mailing list
>> Rxtx at qbang.org
> Rxtx mailing list
> Rxtx at qbang.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rxtx