lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Earwin Burrfoot" <ear...@gmail.com>
Subject Re: 2.9/3.0 plan & Java 1.5
Date Sun, 14 Dec 2008 18:21:03 GMT
> For return parameters, I think you should return the most specific interface
> you can give to the user (without fixing to something you may change in
> future versions). Maybe a user wants to use the return value of getFields()
> as List? If it's only Iterable, he cannot e.g. access the list directly.
> This is important, because the stored fields are an *ordered* list and maybe
> he wants the third entry in this list?

I second this.
Most specific interface available for return types, and least specific
required for parameter types.


-- 
Kirill Zakharenko/Кирилл Захаренко (earwin@gmail.com)
Home / Mobile: +7 (495) 683-567-4 / +7 (903) 5-888-423
ICQ: 104465785
Mime
View raw message