Java: Miscellaneous: AbstractMap
AbstractMap is implemented on top of its entrySet. This leads to some inefficiencies if the implementation is not based on existing Map.Entrys, but has to create them for the iteration. It is then better to base some implementations on keySet/values or to code them directly.
By default creates the entrySet (if lazy), can be overridden to avoid it.
By default iterates over the entrySet, can be overridden to do it directly.
By default iterates over the entrySet, can be overridden to use the keySet or directly.
By default iterates over the entrySet, can be overridden to use the values Collection or directly (but is not an important method)
By default most methods are based on the entrySet iterator. Only used from the outside.
By default most methods are based on the entrySet iterator. Only used from the outside.
By default iterates over the entrySet
By default iterates over the entrySet
By default iterates over the entrySet
By default iterates over the entrySet, can be overridden to do it directly (alas, it has to return the old value, otherwise it could simply use the keySet).
By default clears the entrySet, can be overridden to do it directly or to clear the keySet (or the values Collection).
TBD
(C) 2001-2009 Christian Kaufhold (swing@chka.de)