com.atlassian.jira.util.collect
Class MemoizingMap.Master<K,V>

java.lang.Object
  extended by com.atlassian.jira.util.collect.MemoizingMap.Master<K,V>
Type Parameters:
K - the key type
V - the value type
Enclosing class:
MemoizingMap<K,V>

public static class MemoizingMap.Master<K,V>
extends Object

Master that individual Maps can be printed from.


Nested Class Summary
static class MemoizingMap.Master.Builder<K,V>
          Used to build a MemoizingMap.Master that individual local copies can then be copied from.
 
Method Summary
static
<K,V> MemoizingMap.Master.Builder<K,V>
builder()
           
 MemoizingMap.Master<K,V> combine(MemoizingMap.Master<K,V> other)
          Make a composite MemoizingMap.Master of the other and this master.
 Map<K,V> toMap(Map<K,? extends V> localValues)
          Make a composite caching map of the local and master maps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

builder

public static <K,V> MemoizingMap.Master.Builder<K,V> builder()

combine

public MemoizingMap.Master<K,V> combine(MemoizingMap.Master<K,V> other)
Make a composite MemoizingMap.Master of 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

public Map<K,V> toMap(Map<K,? extends V> localValues)
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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.