Should LinkedHashMap expose the Entries subclass

Paulo Levi i30817 at
Sat Aug 18 16:38:14 UTC 2012

Now that i looked at the code, ListIterator is not the best fit - it has
some dubious methods for something indexed by hashcode.

The int nextIndex()  and int previousIndex() methods. How about making a
superinterface for ListIterator -> OrderedIterator and make a new methods

OrderedIterator<Entry<K,V>> from(K e) (for map)
OrderedIterator<E> from(E e) (for set)


More information about the discuss mailing list