Hi!
1. Set may be added at no cost beacause
Set and Collection have the same interface.
But I agrre that that it can be used to indicate
that the result is unordered and all entries are
unique.
2. java.util.SortedSet is not very useful and
is hard to implement correctly because it uses
comparator interface.
3. I think that SortedMap and Map should not be
used as result of finder beacuse they are not
"collections".
Constantine
Jon Tirsen wrote:
>
> I suggest adding all collection-interfaces as return-types.
> Although java.util.Set might not be useful purely programmatically
> (especially if it's not mutable...), it has nice documentary purpose.
> And, yes, I agree upon that finder-collections should be immutable.
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Constantine Plotnikov
> > Sent: den 28 maj 1999 18:02
> > To: [EMAIL PROTECTED]
> > Subject: Allowed collection return types for finders.
> >
> >
> > Hi!
> >
> > Currently following collection types is supported as return type for
> > finders:
> > * java.util.Enumeration
> > * java.util.Collection
> >
> > I suggest to add java.util.List to set of allowed collection
> > return types. java.util.List is very useful return type because
> > it allow positional access and better iterators.
> >
> > I also suggest to specify that returned collections are immutable
> > and will throw java.lang.UnsupportedOperationException for all
> > mutators.
> >
> > Constantine
> >
> > ==================================================================
> > =========
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".