Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [corona-dev] IContextContainerManager api.

I also think that it is good and common practice to use "super inferaces". There is even a refactoring target in Eclipse "Use super type wherever possible".

Marcin

Jaworowski, Piotr napisaƂ(a):

The question is. Does listContainerUris method really has to return the
List?
Actually, by returning the Collection in the interface we're more
flexible, in future we can change implementation of that interface and
return a Set or a List without changing the IContextContainerManager
api.

For sure this will reduce the amount of changes required, if we will
decide for that method to return a Set.

Actually, I think that listContainerUris method *should* return a Set of
container uris not a list, as a container uri is something like an Id of
the container and should be unique within returned collection.


Cheers,
Piotr

Ps Actually, such approach is recommended in book
http://www.amazon.com/exec/obidos/ASIN/0201310058/ref=nosim/javapractice
s-20 The book is really great. :-)


-----Original Message-----
From: corona-dev-bounces@xxxxxxxxxxx [mailto:corona-dev-
bounces@xxxxxxxxxxx] On Behalf Of Everitt, Glenn
Sent: Tuesday, January 09, 2007 2:02 PM
To: Corona development
Subject: RE: [corona-dev] IContextContainerManager api.

-1
this actually reduces the amount of information about the api.  If it
is
really a list of objects why change to collection - I see no benefit

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. _______________________________________________
corona-dev mailing list
corona-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/corona-dev


The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

Back to the top