java - Why Iterator<E> iterator() is put in Collection, AbstractCollection when already in Iterable -


this question has answer here:

when iterator iterator() put in iterable interface , extended collection interface , abstractcollection interface, why again mentioned in collection/abstractcollection no definition given in abstract class.

please me understand missing in design perspective

the iterator() appears in iterator , collection javadoc different. in abstractcollection different again, doesn't appear add value.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -