> 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/Кирилл Захаренко (ear...@gmail.com) Home / Mobile: +7 (495) 683-567-4 / +7 (903) 5-888-423 ICQ: 104465785