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

java.lang.Object
  extended by com.atlassian.jira.util.collect.MapBuilder<K,V>

public class MapBuilder<K,V>
extends Object


Constructor Summary
MapBuilder()
           
 
Method Summary
 MapBuilder<K,V> add(K key, V value)
           
 MapBuilder<K,V> addAll(Map<K,V> mapToAdd)
           
 MapBuilder<K,V> addIfValueNotNull(K key, V value)
           
static
<K,V> MapBuilder<K,V>
newBuilder()
           
 Map<K,V> toImmutableMap()
           
 Map<K,V> toMap()
           
 Map<K,V> toMutableMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBuilder

public MapBuilder()
Method Detail

newBuilder

public static <K,V> MapBuilder<K,V> newBuilder()

add

public MapBuilder<K,V> add(K key,
                           V value)

addIfValueNotNull

public MapBuilder<K,V> addIfValueNotNull(K key,
                                         V value)

toImmutableMap

public Map<K,V> toImmutableMap()

toMutableMap

public Map<K,V> toMutableMap()

toMap

public Map<K,V> toMap()

addAll

public MapBuilder<K,V> addAll(Map<K,V> mapToAdd)


Copyright © 2002-2012 Atlassian. All Rights Reserved.