net.csdn.common.collect
Class MapBuilder<K,V>

java.lang.Object
  extended by net.csdn.common.collect.MapBuilder<K,V>

public class MapBuilder<K,V>
extends Object

BlogInfo: william Date: 11-9-1 Time: 下午2:15


Constructor Summary
MapBuilder()
           
MapBuilder(Map map)
           
 
Method Summary
 boolean containsKey(K key)
           
 V get(K key)
           
 com.google.common.collect.ImmutableMap<K,V> immutableMap()
           
 Map<K,V> map()
           
static
<K,V> MapBuilder<K,V>
newLinkedHashMap()
           
static
<K,V> MapBuilder<K,V>
newMapBuilder()
           
static
<K,V> MapBuilder<K,V>
newMapBuilder(Map<K,V> map)
           
 MapBuilder<K,V> put(K key, V value)
           
 MapBuilder<K,V> putAll(Map<K,V> map)
           
 MapBuilder<K,V> remove(K key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBuilder

public MapBuilder()

MapBuilder

public MapBuilder(Map map)
Method Detail

newMapBuilder

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

newLinkedHashMap

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

newMapBuilder

public static <K,V> MapBuilder<K,V> newMapBuilder(Map<K,V> map)

putAll

public MapBuilder<K,V> putAll(Map<K,V> map)

put

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

remove

public MapBuilder<K,V> remove(K key)

get

public V get(K key)

containsKey

public boolean containsKey(K key)

map

public Map<K,V> map()

immutableMap

public com.google.common.collect.ImmutableMap<K,V> immutableMap()


Copyright © 2014. All Rights Reserved.