Stuart McCulloch wrote:
2009/4/3 Niclas Hedhman <[email protected] <mailto:[email protected]>>

    On Fri, Apr 3, 2009 at 10:46 AM, Stuart McCulloch <[email protected]
    <mailto:[email protected]>> wrote:

     >    extends AbstractAssociation, Iterable<T>

    Well, IFF iterator().remove() actually works on the underlying set/list.


the iterator contract says "remove" can throw UnsupportedOperationException
(as indeed many implementations actually do) because it's an optional method

I think it is implementable.

except that Rickard was talking about wrappers - if these methods provide a
wrapper that delegates through to the original object (such as an immutable
view) then it should be "asXYZ"

if they return mutable _copies_ then "toXYZ" would be more appropriate

It all depends on whether we can implement wrappers or not then.

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to