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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -