Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid implentation types in list parameters #11

Open
fsdesa opened this issue Nov 19, 2015 · 2 comments
Open

Avoid implentation types in list parameters #11

fsdesa opened this issue Nov 19, 2015 · 2 comments

Comments

@fsdesa
Copy link

fsdesa commented Nov 19, 2015

Can you change list methods? Change ArrayList by Collection or Iterable interface.
Good work

@kcochibili
Copy link
Owner

I am not well experienced on Collections, ArrayLists is the List type that I'm familiar with.
If you think Collections would be more efficient, you can fork this project and make modifications. I'll be happy to learn and improve from it.

@gioragutt
Copy link

@kcochibili Collection or Iterable aren't collection types, but are interfaces. ArrayList is a specific implementation of a collection, but @maguitoon wants is that the API will not bound users to use one implementation or another, but instead an interface, which will give more flexibility to the users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants