Package com.atlassian.jira.util.collect
Class MemoizingMap.Master<K,V>
java.lang.Object
com.atlassian.jira.util.collect.MemoizingMap.Master<K,V>
- Type Parameters:
K- the key typeV- the value type
- Enclosing class:
- MemoizingMap<K,
V>
Master that individual Maps can be printed from.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to build aMemoizingMap.Masterthat individual local copies can then be copied from. -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> MemoizingMap.Master.Builder<K, V> builder()combine(MemoizingMap.Master<K, V> other) Make a compositeMemoizingMap.Masterof the other and this master.Make a composite caching map of the local and master maps.
-
Method Details
-
builder
-
combine
Make a compositeMemoizingMap.Masterof the other and this master.- Parameters:
other- any values that may override elements in this Master.- Returns:
- a map instance that will be lazily populated with the values from the master.
-
toMap
Make a composite caching map of the local and master maps.- Parameters:
localValues- any values that may override elements in the Master.- Returns:
- a map instance that will be lazily populated with the values from the master.
-