[Rxtx] NRJavaSerial, a fork of rxtx that fixes the papercuts!
Kustaa Nyholm
Kustaa.Nyholm at planmeca.com
Mon Mar 28 11:41:01 MDT 2011
On 3/28/11 20:22, "Jim Redman" <jredman at ergotech.com> wrote:
>An Iterator (probably) allows modification of the underlying object
>(add,remove).
Which iterator is that?
java.util.Iterator only supports hasNext,next and optionally remove which
can throw UnsupportedOperationException if you don't want to / cannot
support
it.
>
>An Enumeration does not.
>
>If you're going to return a List Iterator, you need to handle the
>mutability of the underlying Collection.
As I understand java.util.Iterator this is a non issue.
br Kusti
More information about the Rxtx
mailing list