Class MemoizingMap.Master<K,V>

java.lang.Object
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.
  • Method Details

    • 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.