Package org.alfresco.util
Class ValueDerivingMapFactory<O,K,V>
java.lang.Object
org.alfresco.util.ValueDerivingMapFactory<O,K,V>
A factory for maps that dynamically derive their looked up values from a given source object.
- Author:
- dward
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface for objects that derive the value for a specific entry in the map. -
Constructor Summary
ConstructorsConstructorDescriptionValueDerivingMapFactory(Map<K, ValueDerivingMapFactory.ValueDeriver<O, V>> valueDerivers) Instantiates a new value deriving map factory. -
Method Summary
-
Constructor Details
-
ValueDerivingMapFactory
Instantiates a new value deriving map factory.- Parameters:
valueDerivers- a map of value derivers that derive the value of each entry from a given source
-
-
Method Details
-
getMap
Gets a map that derives its values from the given source.- Parameters:
source- the source- Returns:
- the map
-