You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many cases, we use a List simply as the default collection, rather than for a specialised purpose. In such cases, it would be worthwhile to use an Iterable, or a Collection, to improve the flexibility of the library.
E.g.
public interface Configuration {
...
List<String> getDownsizeTarget();
...
}
In this case, the method likely does not need to return a List. In all likelihood, Iterable would be an acceptable substitution.
The text was updated successfully, but these errors were encountered:
In many cases, we use a List simply as the default collection, rather than for a specialised purpose. In such cases, it would be worthwhile to use an Iterable, or a Collection, to improve the flexibility of the library.
E.g.
In this case, the method likely does not need to return a List. In all likelihood, Iterable would be an acceptable substitution.
The text was updated successfully, but these errors were encountered: