Package net.cscott.jutil
Interface MapFactory<K,V>
- All Known Subinterfaces:
MultiMapFactory<K,V>
- All Known Implementing Classes:
AggregateMapFactory,GenericMultiMapFactory,PersistentMapFactory,PersistentMultiMapFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
MapFactory is a Map generator.
Implementations construct specific types of Maps.
It is a functional interface, so a constructor which copies a
map is a MapFactory: HashMap::new.
Note also that the current limitations on parametric types in
Java mean that we can't easily type this class as
MapFactory<M extends Map<K,V>,K,V>,
as MapFactory<HashMap<K,V>,K,V> is not
a subtype of MapFactory<Map<K,V>,K,V>,
even though HashMap is a subtype of Map.
- Author:
- Felix S. Klock II <pnkfelix@mit.edu>
-
Method Summary